Commit abb8722f authored by EKbfh's avatar EKbfh 🐼
Browse files

Merge branch 'fix-deprecation-tower_run_checks' into 'master'

fix tower_run_checks

See merge request noc/noc!6436
parents 6f6d43b6 d82ef34c
......@@ -5,18 +5,18 @@
check_mode: "False"
changed_when: false
register: noc_ctl_status
when: tower_serial_restart_noc
when: (tower_serial_restart_noc)
- name: Reread config
command: "{{ noc_root }}/noc ctl reread"
register: noc_ctl_reread
when:
- tower_serial_restart_noc
- (tower_serial_restart_noc)
- "'RUNNING' in noc_ctl_status.stdout"
- name: Serial NOC restart
command: "{{ noc_root }}/noc ctl serialrestart all"
when: tower_serial_restart_noc
when: (tower_serial_restart_noc)
changed_when: false
- name: Restart NOC node
......@@ -27,7 +27,7 @@
enabled: "True"
changed_when: "True"
when:
- tower_stop_noc
- (tower_stop_noc)
- not tower_serial_restart_noc
- name: notify deploy finished
......
......@@ -23,6 +23,6 @@
- name: Run post installation tests
include_tasks: "{{ item }}"
with_myglob: ["./*_roles/*/tasks/tests.yml"]
when: tower_run_tests
when: (tower_run_tests)
tags:
- tests
......@@ -13,7 +13,7 @@
- name: Run pre installation checks
include_tasks: "{{ item }}"
with_myglob: ["./*_roles/*/tasks/checks.yml"]
when: tower_run_checks
when: (tower_run_checks)
tags:
- checks
......
......@@ -38,6 +38,6 @@
notify: reload nginx
- include_tasks: "firewall.yml"
when: nginx_permit_firewall
when: (nginx_permit_firewall)
tags:
- firewall
......@@ -38,6 +38,6 @@
notify: reload nginx
- include_tasks: "firewall.yml"
when: nginx_permit_firewall
when: (nginx_permit_firewall)
tags:
- firewall
......@@ -33,6 +33,6 @@
notify: reload nginx
- include_tasks: "firewall.yml"
when: nginx_permit_firewall
when: (nginx_permit_firewall)
tags:
- firewall
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment