Go to file
2024-11-03 17:21:11 +01: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 regex. 2024-11-03 17:21:11 +01:00
tasks Fix wrong comment. 2024-10-31 20:22:30 +01: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 Migrate from Gogs to Gitea. 2024-11-01 09:58:35 +01: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 retrieve secrets on Ansible controller. 2024-10-27 23:34:39 +01:00
README.md Separate deploy and delete plays in different playbooks. 2024-06-15 22:41:42 +02:00
TODO Update TODO. 2024-11-01 10:47:16 +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