- hosts: localhost vars_files: - "vars/{{ ansible_facts['os_family'] }}.yaml" vars: services: - nginx - postgresql - redis roles: - { role: certificates } - hosts: all vars_files: - "vars/{{ ansible_facts['os_family'] }}.yaml" roles: - { role: common, become=yes, become_user=root } - hosts: postgresql vars_files: - "vars/{{ ansible_facts['os_family'] }}.yaml" roles: - { role: postgresql, become=yes, become_user=root } - hosts: redis vars_files: - "vars/{{ ansible_facts['os_family'] }}.yaml" roles: - { role: redis, become=yes, become_user=root } - hosts: nextcloud vars_files: - "vars/{{ ansible_facts['os_family'] }}.yaml" roles: - { role: nextcloud, become=yes, become_user=root } - hosts: coolwsd vars_files: - "vars/{{ ansible_facts['os_family'] }}.yaml" roles: - { role: coolwsd, become=yes, become_user=root }