--- # # This playbook configures most basic things about the hosts: # # - Admin and Additional users # - Disables root login # - Installs Common packages # - Starts Consul client agent # # This is run on every newly provisioned host. # - name: Verify Ansible versions hosts: all tags: always become: false run_once: true gather_facts: false tasks: - local_action: command ./versioncheck.py changed_when: false - name: Bootstrap Python support for Ansible become: true hosts: all roles: - role: infra-role-bootstrap-linux/raw when: ansible_system == 'Linux' - name: Bootstrap admin users and Consul become: true hosts: all roles: - role: infra-role-bootstrap-linux when: ansible_system == 'Linux' - role: infra-role-bootstrap-macos when: ansible_system == 'Darwin' - role: infra-role-bootstrap-windows when: ansible_system == 'Win32nt' vars: { fact_path: 'C:/ansible/facts.d' }