mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
Setup is now 'handled'
This commit is contained in:
@@ -15,3 +15,6 @@
|
|||||||
name: nginx
|
name: nginx
|
||||||
state: restarted
|
state: restarted
|
||||||
when: ansible_distribution == "FreeBSD"
|
when: ansible_distribution == "FreeBSD"
|
||||||
|
|
||||||
|
- name: setup
|
||||||
|
action: setup
|
||||||
|
|||||||
@@ -89,8 +89,4 @@
|
|||||||
src: etc/ansible/facts.d/nginx.fact.j2
|
src: etc/ansible/facts.d/nginx.fact.j2
|
||||||
dest: /etc/ansible/facts.d/nginx.fact
|
dest: /etc/ansible/facts.d/nginx.fact
|
||||||
mode: 0644
|
mode: 0644
|
||||||
register: fact
|
notify: ['setup']
|
||||||
|
|
||||||
- name: SETUP
|
|
||||||
action: setup
|
|
||||||
when: fact.changed
|
|
||||||
|
|||||||
Reference in New Issue
Block a user