- hosts: localhost vars_files: - "vars/{{ ansible_facts['os_family'] }}.yaml" vars: services: - nginx - postgresql - redis roles: - name: certificates - hosts: all vars_files: - "vars/{{ ansible_facts['os_family'] }}.yaml" roles: - name: common - hosts: postgresql vars_files: - "vars/{{ ansible_facts['os_family'] }}.yaml" roles: - name: postgresql - hosts: redis vars_files: - "vars/{{ ansible_facts['os_family'] }}.yaml" roles: - name: redis - hosts: coolwsd vars_files: - "vars/{{ ansible_facts['os_family'] }}.yaml" roles: - name: coolwsd - hosts: nextcloud vars_files: - "vars/{{ ansible_facts['os_family'] }}.yaml" roles: - name: nextcloud - name: coolwsd-nginx