Go to file
2024-10-23 20:34:01 +02:00
collections Add requirement for community.general. 2024-10-06 16:07:19 +02:00
library Initial commit. 2024-03-22 21:46:39 +01:00
roles Fix variabilization. 2024-10-22 23:56:16 +02:00
tasks Deploy SSH public key. 2024-10-23 20:34:01 +02:00
templates Fix idempotency. 2024-06-20 14:05:41 +02:00
vars Fix variabilization. 2024-10-23 20:26:36 +02:00
ansible.cfg Fix callback configuration directive for Ansible 2.10. 2024-04-13 13:31:12 +02:00
build_image.yml Add registry login to build_image.yml. 2024-10-20 23:17:58 +02:00
delete_ovh_instance.yml Fix idempotency. 2024-06-20 14:05:41 +02:00
deploy_ovh_instance.yml Fix variabilization. 2024-10-22 23:56:16 +02:00
deploy_ssh_keypair.yml Deploy SSH public key. 2024-10-23 20:34:01 +02:00
DEV_GUIDELINES.md Create all containers from registry images instead of rebuilding images. 2024-04-13 16:11:17 +02:00
install_requirements.sh Fix requirements. 2024-03-22 22:08:20 +01:00
inventory.yml Initial commit. 2024-03-22 21:46:39 +01:00
launch_role.yml Fix syntax. 2024-10-19 12:13:28 +02:00
README.md Separate deploy and delete plays in different playbooks. 2024-06-15 22:41:42 +02:00
TODO Finish nextcloud role. 2024-03-23 11:43:51 +01:00

deploy:

$ SECRETS_ARCHIVE_PASSPHRASE=XXXXXX ansible-playbook -e target_name=host.domain -e SECRET_HOST=host2.domain2 deploy_ovh_instance.yml

delete:

$ SECRETS_ARCHIVE_PASSPHRASE=XXXXXX ansible-playbook -e target_name=host.domain -e SECRET_HOST=host2.domain2 delete_ovh_instance.yml

library directory contains Ansible modules from https://github.com/gheesh/ansible-ovh-dns

build a container image

ansible-playbook -i host.domain, -e HTTPS_REPO_URL="https://git.domain/path/docker-mysql.git" -e REPO_NAME=docker-mysql -e IMAGE_NAME=mysql-server build_image.yml