Unify nginx module tasks
This commit is contained in:
parent
b32a63bd72
commit
ef432642dd
1 changed files with 10 additions and 16 deletions
|
@ -10,27 +10,21 @@
|
||||||
when: ansible_os_family == 'Archlinux'
|
when: ansible_os_family == 'Archlinux'
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Install nginx-mod-http-headers-more
|
- name: Install nginx modules
|
||||||
package:
|
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'
|
when: ansible_os_family != 'Archlinux'
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Install nginx-mod-http-headers-more on Arch
|
- name: Install nginx modules (on Arch)
|
||||||
kewlfft.aur.aur:
|
kewlfft.aur.aur:
|
||||||
name: nginx-mainline-mod-headers-more
|
name: "{{ item }}"
|
||||||
when: ansible_os_family == 'Archlinux'
|
loop:
|
||||||
become: true
|
- nginx-mainline-mod-headers-more
|
||||||
|
- nginx-mainline-mod-brotli
|
||||||
- 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
|
|
||||||
when: ansible_os_family == 'Archlinux'
|
when: ansible_os_family == 'Archlinux'
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue