You've already forked ansible-role-docker
1.4 KiB
1.4 KiB
Ansible Role for docker install on Debian
Role Variables
Usually, you don't need to add any variable to perform a simple docker install. Most of these are used to push docker-compose files for your services, start these, and push a custom watchtower docker-compose and systemd service file.
## defaults vars for ansible-docker
# directory where your docker-compose files are, example:
# docker_compose_template: ../data/docker/
docker_compose_template: false
# directory where your docker-compose files will be pushed
docker_folder: /opt/docker
# list of your docker services
# they will be started automatically
docker_compose_services: [""]
# start a standard watchtower container automatically
docker_watchtower: false
# if you want to use a custom docker-compose file and systemd service file for watchtower
docker_watchtower_template: false
# only with docker_watchtower_template
# where your custom watchtower docker-compose file is
docker_watchtower_docker_compose: 'watchtower/docker-compose.yml'
# only with docker_watchtower_template
# where your custom watchtower systemd service file is
docker_watchtower_systemd: 'watchtower/docker-compose@watchtower.service'
## docker-compose watchtower template
# watchtower schedule
watchtower_schedule: '0 0 3 * * *'
# watchtower notification url
# put your webhook here
watchtower_notification_url: false