|
|
@ -7,9 +7,14 @@ |
|
|
|
register: nginx_ppa_added |
|
|
|
register: nginx_ppa_added |
|
|
|
when: nginx_ppa_use | bool |
|
|
|
when: nginx_ppa_use | bool |
|
|
|
|
|
|
|
|
|
|
|
- name: Ensure nginx will reinstall if the PPA was just added. |
|
|
|
- name: Ensure nginx will reinstall if the PPA was just added or modified. |
|
|
|
apt: |
|
|
|
apt: |
|
|
|
name: nginx |
|
|
|
name: nginx |
|
|
|
state: absent |
|
|
|
state: absent |
|
|
|
when: nginx_ppa_added.changed |
|
|
|
when: nginx_ppa_added.changed |
|
|
|
tags: ['skip_ansible_lint'] |
|
|
|
tags: ['skip_ansible_lint'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install nginx. |
|
|
|
|
|
|
|
apt: |
|
|
|
|
|
|
|
name: nginx |
|
|
|
|
|
|
|
state: present |
|
|
|