40 lines
816 B
YAML
40 lines
816 B
YAML
|
- name: restart interfaces
|
||
|
shell: ifdown --force --auto && ifup --auto
|
||
|
when: "'handler' not in ansible_skip_tags"
|
||
|
|
||
|
- name: reload nftables
|
||
|
service:
|
||
|
name: nftables
|
||
|
state: reloaded
|
||
|
when: "'handler' not in ansible_skip_tags"
|
||
|
|
||
|
- name: reload nginx
|
||
|
service:
|
||
|
name: nginx
|
||
|
state: reloaded
|
||
|
when: "'handler' not in ansible_skip_tags"
|
||
|
|
||
|
- name: restart nginx
|
||
|
service:
|
||
|
name: nginx
|
||
|
state: restarted
|
||
|
when: "'handler' not in ansible_skip_tags"
|
||
|
|
||
|
- name: restart pusher
|
||
|
service:
|
||
|
name: pusher
|
||
|
state: restarted
|
||
|
when: "'handler' not in ansible_skip_tags"
|
||
|
|
||
|
- name: reload uwsgi
|
||
|
service:
|
||
|
name: uwsgi
|
||
|
state: reloaded
|
||
|
when: "'handler' not in ansible_skip_tags"
|
||
|
|
||
|
- name: restart uwsgi
|
||
|
service:
|
||
|
name: uwsgi
|
||
|
state: restarted
|
||
|
when: "'handler' not in ansible_skip_tags"
|