--- - name: general roles for all hosts hosts: all roles: - { role: base, tags: [default,packages,base]} - { role: ranger, tags: [packages,ranger]} - { role: bat, tags: [packages,bat], when: [ansible_os_family == 'Debian']} - name: user specific roles for all hosts hosts: all roles: - { role: users, tags: [default,users]} - { role: dotfiles, tags: [default,dotfiles]} - { role: ssh_auth, tags: [default,users]} - { role: sshd, tags: [default,users]} - name: deploy web config hosts: web roles: - { role: webhost2, tags: [web,webhost]} - { role: acmetool_fix, tags: [web,acmetool]} - { role: acmetool2, tags: [web,acmetool]} - { role: nginx2, tags: [web,nginx]} - { role: goaccess, tags: [web,goaccess]}