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:
parent
6a639fcf4e
commit
e732a58f03
@ -28,3 +28,4 @@
|
||||
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
|
||||
mode: pull
|
||||
when: config_dir_stats.stat.exists
|
||||
tags: [zuul]
|
||||
|
@ -49,3 +49,4 @@
|
||||
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
|
||||
mode: pull
|
||||
ignore_errors: True
|
||||
tags: [zuul]
|
||||
|
@ -109,3 +109,4 @@
|
||||
src: "{{ libvirt_log_dir }}"
|
||||
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
|
||||
mode: pull
|
||||
tags: [zuul]
|
||||
|
@ -27,3 +27,4 @@
|
||||
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
|
||||
mode: pull
|
||||
ignore_errors: True
|
||||
tags: [zuul]
|
||||
|
@ -43,3 +43,4 @@
|
||||
src: "{{ runtime_logs_dir }}"
|
||||
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
|
||||
mode: pull
|
||||
tags: [zuul]
|
||||
|
@ -81,4 +81,5 @@
|
||||
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
|
||||
mode: pull
|
||||
ignore_errors: True
|
||||
tags: [zuul]
|
||||
...
|
||||
|
@ -39,3 +39,4 @@
|
||||
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
|
||||
mode: pull
|
||||
ignore_errors: True
|
||||
tags: [zuul]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user