2015-07-15 17:14:39 +07:00
|
|
|
---
|
2015-07-15 20:18:51 +07:00
|
|
|
|
|
|
|
- name: reload nginx
|
2016-03-15 21:57:46 +07:00
|
|
|
command: nginx -t
|
2018-03-16 00:06:38 +07:00
|
|
|
notify:
|
|
|
|
- real-reload nginx
|
|
|
|
- docker reload nginx
|
2016-03-15 21:57:46 +07:00
|
|
|
|
2017-11-03 16:30:24 +07:00
|
|
|
- name: restart nginx
|
|
|
|
command: nginx -t
|
2018-03-16 00:06:38 +07:00
|
|
|
notify:
|
|
|
|
- real-restart nginx
|
|
|
|
- docker restart nginx
|
2017-11-03 16:30:24 +07:00
|
|
|
|
2016-03-15 21:57:46 +07:00
|
|
|
- name: real-reload nginx
|
2017-10-26 20:47:30 +07:00
|
|
|
service:
|
|
|
|
name: nginx
|
|
|
|
state: reloaded
|
2018-03-16 00:06:38 +07:00
|
|
|
when: ansible_virtualization_type != 'docker'
|
2016-03-16 05:00:55 +07:00
|
|
|
|
2017-11-03 16:30:24 +07:00
|
|
|
- name: real-restart nginx
|
|
|
|
service:
|
|
|
|
name: nginx
|
|
|
|
state: restarted
|
2018-03-16 00:06:38 +07:00
|
|
|
when: ansible_virtualization_type != 'docker'
|
|
|
|
|
|
|
|
- name: docker reload nginx
|
|
|
|
command: service nginx reload
|
2019-02-13 00:04:24 +07:00
|
|
|
args:
|
|
|
|
warn: false
|
2018-03-16 00:06:38 +07:00
|
|
|
when: ansible_virtualization_type == 'docker'
|
|
|
|
|
|
|
|
- name: docker restart nginx
|
|
|
|
command: service nginx restart
|
2019-02-13 00:04:24 +07:00
|
|
|
args:
|
|
|
|
warn: false
|
2018-03-16 00:06:38 +07:00
|
|
|
when: ansible_virtualization_type == 'docker'
|
2017-11-03 16:30:24 +07:00
|
|
|
|
2016-03-16 05:00:55 +07:00
|
|
|
- name: restart nginx freebsd
|
2017-10-26 20:47:30 +07:00
|
|
|
service:
|
|
|
|
name: nginx
|
|
|
|
state: restarted
|
2016-03-16 05:00:55 +07:00
|
|
|
when: ansible_distribution == "FreeBSD"
|
2017-10-26 20:50:59 +07:00
|
|
|
|
|
|
|
- name: setup
|
|
|
|
action: setup
|