blob: ac652dcd2d15cb01672a1d215cf3b89cab8b3aff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
---
- name: Using the IBM Spectrum Virtualize collection
collections:
- ibm.spectrum_virtualize
gather_facts: no
connection: local
hosts: localhost
vars:
- user: username
- clustername: x.x.x.x
- username: username
- password: password
tasks:
- name: Run CLI commands
register: results
ibm_svcinfo_command:
command: "svcinfo lssystem"
clustername: "{{ clustername }}"
username: "{{ username }}"
password: "{{ password }}"
log_path: /tmp/test.debug
- name: show time zone in lssystem
set_fact:
time_zone: "{{ (results['stdout'] | from_json).time_zone }}"
|