Merge "CI: Use any_errors_fatal in pre.yml and run.yml"

This commit is contained in:
Zuul 2019-10-11 16:07:38 +00:00 committed by Gerrit Code Review
commit e08f046daf
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,6 @@
--- ---
- hosts: all - hosts: all
any_errors_fatal: true
vars: vars:
logs_dir: "/tmp/logs" logs_dir: "/tmp/logs"
tasks: tasks:

View File

@ -1,5 +1,6 @@
--- ---
- hosts: all - hosts: all
any_errors_fatal: true
tasks: tasks:
# NOTE(yoctozepto): ensure we pick up fact changes from pre # NOTE(yoctozepto): ensure we pick up fact changes from pre
- name: Refresh facts - name: Refresh facts
@ -28,6 +29,7 @@
ceph_storetype: "{{ hostvars[inventory_hostname].get('ceph_osd_storetype') }}" ceph_storetype: "{{ hostvars[inventory_hostname].get('ceph_osd_storetype') }}"
- hosts: primary - hosts: primary
any_errors_fatal: true
tasks: tasks:
- name: detect whether need build images - name: detect whether need build images
set_fact: set_fact:
@ -259,6 +261,7 @@
# NOTE(yoctozepto): each host checks itself # NOTE(yoctozepto): each host checks itself
- hosts: all - hosts: all
any_errors_fatal: true
tasks: tasks:
- name: Pre-upgrade sanity checks - name: Pre-upgrade sanity checks
block: block:
@ -284,6 +287,7 @@
when: is_upgrade when: is_upgrade
- hosts: primary - hosts: primary
any_errors_fatal: true
tasks: tasks:
# Upgrade: update config. # Upgrade: update config.
- block: - block:
@ -393,6 +397,7 @@
# NOTE(yoctozepto): each host checks itself # NOTE(yoctozepto): each host checks itself
- hosts: all - hosts: all
any_errors_fatal: true
tasks: tasks:
- name: Run check-failure.sh script - name: Run check-failure.sh script
shell: shell: