diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-24 21:14:40 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-24 22:47:18 +0800 |
commit | 7aaa7b0bf4ae4f29134b0298351c1aa1c189c253 (patch) | |
tree | 3cde7a25f4dc1500bd2c35cb54efc53d66070b0a /resources/ansible_roles/inxi | |
parent | d550122312110e9db8759a4dc52ace8b230373db (diff) |
Support running collect stage only
- add `always` tag to tasks required for all stages
- apply `setup`, `collect` and `run` tag to each stage
Change-Id: I806ec1add08bb18cb5b2848c78a039ed8a38c8ff
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/ansible_roles/inxi')
-rw-r--r-- | resources/ansible_roles/inxi/tasks/main.yml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/resources/ansible_roles/inxi/tasks/main.yml b/resources/ansible_roles/inxi/tasks/main.yml index 6d041e3f..e7ffd18c 100644 --- a/resources/ansible_roles/inxi/tasks/main.yml +++ b/resources/ansible_roles/inxi/tasks/main.yml @@ -19,6 +19,8 @@ - name: generating log filename set_fact: logfile: "{{ qtip_results }}/inxi.log" + tags: + - always - name: saving output to log copy: @@ -50,13 +52,16 @@ - '.+\sKernel:\s+(?P<kernel>.+)\sConsole' - '.+\s+HDD Total Size:\s+(?P<disk>.+)\s' - '.+\sproduct:\s+(?P<product>.+)\sv' - dump: 'inix.log' + export_to: "{{ qtip_results }}/system_info.json" register: system_info delegate_to: localhost + tags: + - collect - name: create system information report template: src: system-info.j2 dest: "{{ qtip_results }}/system-info" delegate_to: localhost - tags: [report] + tags: + - report |