17 lines
459 B
YAML
17 lines
459 B
YAML
---
|
|
|
|
- name: SHELL | Get Nginx version
|
|
shell: nginx -v 2>&1 | sed -r 's#.*/##;' | cut -d ' ' -f 1
|
|
register: nginx_version
|
|
changed_when: false
|
|
|
|
- name: SHELL | Get module list
|
|
shell: nginx -V 2>&1 | tr -- - '\n' | grep -A 1 with | grep _module | sed -r 's/_module\s*$//g' |sort
|
|
register: nginx_modules
|
|
changed_when: false
|
|
|
|
- name: FILE | Create folders
|
|
file: dest={{ item }} owner=root mode=0755 state=directory
|
|
with_items: "{{ nginx_dirs }}"
|
|
|