2021-07-23 18:45:44 -04:00
|
|
|
---
|
|
|
|
###########################################################################
|
|
|
|
#
|
|
|
|
# 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,
|
2022-01-03 10:08:25 -05:00
|
|
|
# ansible-playbook -i 192.168.0.101, -e "username=someuser" docker.yml
|
2021-07-23 18:45:44 -04:00
|
|
|
#
|
|
|
|
###########################################################################
|
|
|
|
|
|
|
|
- hosts: all
|
|
|
|
gather_facts: true
|
|
|
|
remote_user: root
|
|
|
|
|
|
|
|
roles:
|
|
|
|
- role: docker
|
|
|
|
vars:
|
|
|
|
# Set the following variable as required
|
|
|
|
# ie,
|
2022-01-03 10:08:25 -05:00
|
|
|
# username: someuser
|
2021-07-23 18:45:44 -04:00
|
|
|
#
|
|
|
|
# Default is to apply the playbook against the root user
|
|
|
|
username: "root"
|
|
|
|
- role: reboot
|
|
|
|
|
|
|
|
# EOF
|