playbook_docker/docker.yml

43 lines
1.2 KiB
YAML

---
###########################################################################
#
# This is the top level playbook for the 'docker' role.
#
# This role will install docker on the target host.
#
###########################################################################
#
# This playbook can be run using the following command line;
#
# ansible-playbook -i <inventory file | IP,> -e "username=<username>" docker.yml
#
# ie,
# ansible-playbook -i 192.168.0.101, -e "username=someuser" docker.yml
#
###########################################################################
- hosts: all
gather_facts: true
remote_user: root
roles:
- role: docker
vars:
# Set the following variable as required
# ie,
# username: someuser
#
# Default is to apply the playbook against the root user
username: "root"
# Version of docker-compose to install from
# https://github.com/docker/compose/releases
#
# Current (20210211) version is 1.28.2
# Current (20210707) version is 1.29.2
# Current (20211103) version is 2.1.0
# Current (20211229) version is 2.2.2
docker_compose_version: "v2.2.2"
- role: reboot
# EOF