27 lines
549 B
YAML
27 lines
549 B
YAML
|
- name: reload nginx
|
||
|
service:
|
||
|
name: nginx
|
||
|
state: reloaded
|
||
|
when: "'handler' not in ansible_skip_tags"
|
||
|
|
||
|
- name: reload package cache
|
||
|
package:
|
||
|
update_cache: yes
|
||
|
when: "'handler' not in ansible_skip_tags"
|
||
|
|
||
|
- name: restart netbox
|
||
|
service:
|
||
|
name: '{{ item }}'
|
||
|
state: restarted
|
||
|
loop:
|
||
|
- netbox
|
||
|
- netbox-rq
|
||
|
when: "'handler' not in ansible_skip_tags"
|
||
|
|
||
|
- name: run migrations
|
||
|
become: yes
|
||
|
become_user: '{{ user }}'
|
||
|
command: sh ~/app/upgrade.sh
|
||
|
notify: restart netbox
|
||
|
when: "'handler' not in ansible_skip_tags"
|