-
Notifications
You must be signed in to change notification settings - Fork 13
/
lmt_collect_status.yml
44 lines (40 loc) · 1.25 KB
/
lmt_collect_status.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
- 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: check_endpoint_status_windows
when: ansible_facts['os_family'] == 'Windows'
- name: "Check ILMT scanners version on UNIX/Linux endpoints"
block:
- include_role:
name: ilmt_scanner
tasks_from: check_endpoint_status_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: check_endpoint_status_ibmi
when: ansible_facts['os_family'] == 'OS400'
- hosts: localhost
connection: local
gather_facts: false
tasks:
- name: "Copy results to scanner_setup.csv file on Control Node"
include_role:
name: ilmt_scanner
tasks_from: prepare_scanner_status_file