|
|
@ -12,7 +12,14 @@ |
|
|
|
when: nginx_user is not defined |
|
|
|
when: nginx_user is not defined |
|
|
|
tags: |
|
|
|
tags: |
|
|
|
- always |
|
|
|
- always |
|
|
|
|
|
|
|
|
|
|
|
# Setup/install tasks. |
|
|
|
# Setup/install tasks. |
|
|
|
|
|
|
|
- name: Install cryptography python library |
|
|
|
|
|
|
|
pip: |
|
|
|
|
|
|
|
name: cryptography |
|
|
|
|
|
|
|
tags: |
|
|
|
|
|
|
|
- nginx |
|
|
|
|
|
|
|
|
|
|
|
- include_tasks: setup-RedHat.yml |
|
|
|
- include_tasks: setup-RedHat.yml |
|
|
|
when: ansible_os_family == 'RedHat' |
|
|
|
when: ansible_os_family == 'RedHat' |
|
|
|
tags: |
|
|
|
tags: |
|
|
@ -44,10 +51,12 @@ |
|
|
|
- always |
|
|
|
- always |
|
|
|
|
|
|
|
|
|
|
|
# Vhost configuration. |
|
|
|
# Vhost configuration. |
|
|
|
- import_tasks: vhosts.yml |
|
|
|
- include_tasks: catchall-vhost.yml |
|
|
|
|
|
|
|
when: nginx_create_catchall_vhost | default(true) | bool |
|
|
|
tags: |
|
|
|
tags: |
|
|
|
- nginx |
|
|
|
- always |
|
|
|
- nginx_vhost |
|
|
|
|
|
|
|
|
|
|
|
- import_tasks: vhosts.yml |
|
|
|
|
|
|
|
|
|
|
|
# Nginx setup. |
|
|
|
# Nginx setup. |
|
|
|
- name: Copy nginx configuration in place. |
|
|
|
- name: Copy nginx configuration in place. |
|
|
|