forked from IBM/ansible-automation-for-lmt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lmt_collect_troubleshooting_data.yml
44 lines (40 loc) · 1.28 KB
/
lmt_collect_troubleshooting_data.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
- hosts: localhost
connection: local
gather_facts: false
tasks:
- include_role:
name: ilmt_scanner
tasks_from: print_playbooks_version
- hosts: localhost
connection: local
gather_facts: false
tasks:
- name: "Create folder for troubleshooting data on Control Node"
include_role:
name: ilmt_scanner
tasks_from: create_troubleshooting_data_storage_folder
- name: "Check ILMT scanners version"
hosts: all
strategy: free
gather_facts: true
gather_subset: "!all,!min"
tasks:
- name: "Check ILMT scanners version on WINDOWS endpoints"
block:
- include_role:
name: ilmt_scanner
tasks_from: collect_troubleshooting_data_windows
when: ansible_facts['os_family'] == 'Windows'
- name: "Check ILMT scanners version on UNIX/Linux endpoints"
block:
- include_role:
name: ilmt_scanner
tasks_from: collect_troubleshooting_data_unix
when: ansible_facts['os_family'] != 'Windows' and ansible_facts['os_family'] != 'OS400'
- name: "Check ILMT scanners version on IBM i endpoints"
block:
- include_role:
name: ilmt_scanner
tasks_from: collect_troubleshooting_data_ibmi
when: ansible_facts['os_family'] == 'OS400'