--- - name: "[Alpine] Install package: nginx" apk: name: - nginx state: present when: - ansible_distribution == "Alpine" - name: "[Archlinux] Install package: nginx" pacman: name: nginx state: present when: - ansible_distribution == "Archlinux" - name: "[Alpine] Install package: nginx-mod-http-xslt-filter" apk: name: nginx-mod-http-xslt-filter state: present when: - ansible_distribution == "Alpine" - services.nginx.enableXSLTFilter is true - name: "[Archlinux] Install package: nginx-mod-http-xslt-filter" pacman: name: nginx-mod-http-xslt-filter state: present when: - ansible_distribution == "Archlinux" - services.nginx.enableXSLTFilter is true