--- - hosts: all gather_facts: False pre_tasks: - name: install python for Ansible raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) register: output changed_when: output.stdout != "" - setup: - name: "Include host secrets where applicable" hosts: "all" tasks: - include_vars: "host_vars/{{ ansible_nodename }}-secrets.yml" ignore_errors: yes tags: - "always" - name: "Run base config on all ubuntu hosts" hosts: "all" become: yes roles: - "ubuntu_base" - name: "Install docker on all servers" hosts: "all_servers" become: yes roles: - "docker"