Added tags to control execution of tasks

* Added tag to zuul specific tasks, so that it can be skipped
  when running the playbooks in local setup or in a 3rd party gate

Change-Id: If512eac4e0c5889a48e4aa98e357ca2ed1feefd8
Relates-To: #449
This commit is contained in:
Sirajudeen 2021-01-22 19:42:39 +00:00
parent 6a639fcf4e
commit e732a58f03
8 changed files with 9 additions and 2 deletions

View File

@ -27,4 +27,5 @@
src: "{{ airshipctl_config_dir }}"
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
mode: pull
when: config_dir_stats.stat.exists
when: config_dir_stats.stat.exists
tags: [zuul]

View File

@ -49,3 +49,4 @@
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
mode: pull
ignore_errors: True
tags: [zuul]

View File

@ -109,3 +109,4 @@
src: "{{ libvirt_log_dir }}"
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
mode: pull
tags: [zuul]

View File

@ -27,3 +27,4 @@
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
mode: pull
ignore_errors: True
tags: [zuul]

View File

@ -43,3 +43,4 @@
src: "{{ runtime_logs_dir }}"
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
mode: pull
tags: [zuul]

View File

@ -81,4 +81,5 @@
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
mode: pull
ignore_errors: True
tags: [zuul]
...

View File

@ -39,3 +39,4 @@
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
mode: pull
ignore_errors: True
tags: [zuul]

View File

@ -25,4 +25,4 @@ PLAYBOOK_CONFIG=${PLAYBOOK_CONFIG:-"${TMP_DIR}/config.yaml"}
sudo ansible-playbook -i "$ANSIBLE_HOSTS" \
playbooks/airship-collect-logs.yaml \
-e @"$PLAYBOOK_CONFIG"
-e @"$PLAYBOOK_CONFIG" --skip-tags zuul