collections | ||
library | ||
roles | ||
tasks | ||
templates | ||
vars | ||
ansible.cfg | ||
build_image.yml | ||
delete_ovh_instance.yml | ||
deploy_ovh_instance.yml | ||
DEV_GUIDELINES.md | ||
install_requirements.sh | ||
inventory.yml | ||
launch_role.yml | ||
README.md | ||
TODO |
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