Skip to content

Commit 167cbc2

Browse files
committed
Update install-distribution.yml
1 parent f4bfe2d commit 167cbc2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tasks/opensource/install-distribution.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@
3636
args:
3737
creates: "{{ (nginx_setup == 'uninstall') | ternary(omit, '/sbin/nginx') }}"
3838
removes: "{{ (nginx_setup == 'uninstall') | ternary('/sbin/nginx', omit) }}"
39-
when:
40-
- ansible_facts['distribution'] == "Amazon"
41-
- nginx_state == "absent"
39+
when: ansible_facts['distribution'] == "Amazon"
4240
notify: (Handler) Run NGINX
4341

4442
- name: "{{ nginx_setup | capitalize }} NGINX from the distribution's package repository"

0 commit comments

Comments
 (0)