Unify nginx module tasks
Some checks failed
/ terraform (push) Successful in 1m8s
/ ansible (push) Failing after 2m0s

This commit is contained in:
Jake Howard 2023-12-20 22:35:11 +00:00
parent b32a63bd72
commit ef432642dd
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -10,27 +10,21 @@
when: ansible_os_family == 'Archlinux'
become: true
- name: Install nginx-mod-http-headers-more
- name: Install nginx modules
package:
name: libnginx-mod-http-headers-more-filter
name: "{{ item }}"
loop:
- libnginx-mod-http-headers-more-filter
- libnginx-mod-http-brotli-filter
when: ansible_os_family != 'Archlinux'
become: true
- name: Install nginx-mod-http-headers-more on Arch
- name: Install nginx modules (on Arch)
kewlfft.aur.aur:
name: nginx-mainline-mod-headers-more
when: ansible_os_family == 'Archlinux'
become: true
- name: Install nginx-mod-brotli
package:
name: libnginx-mod-http-brotli-filter
when: ansible_os_family != 'Archlinux'
become: true
- name: Install nginx-mod-brotli on Arch
kewlfft.aur.aur:
name: nginx-mainline-mod-brotli
name: "{{ item }}"
loop:
- nginx-mainline-mod-headers-more
- nginx-mainline-mod-brotli
when: ansible_os_family == 'Archlinux'
become: true