28 lines
569 B
YAML
28 lines
569 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_method: su
|
|
become_user: '{{ user }}'
|
|
command: sh ~/app/upgrade.sh
|
|
notify: restart netbox
|
|
when: "'handler' not in ansible_skip_tags"
|