--- ########################################################################### # # 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 -e "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" - role: reboot # EOF