summaryrefslogtreecommitdiffstats
path: root/collections-debian-merged/ansible_collections/wti/remote/playbooks
diff options
context:
space:
mode:
Diffstat (limited to 'collections-debian-merged/ansible_collections/wti/remote/playbooks')
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_config/cpm_config_backup.yml26
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_config/cpm_config_restore.yml27
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_interface/interface_config.yml31
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_interface/interface_info.yml26
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_iptables/iptables_config.yml35
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_iptables/iptables_info.yml25
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_plugconfig/plug_config.yml32
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_plugconfig/plug_info.yml28
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_serial_ports/serial_ports_config.yml39
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_serial_ports/serial_ports_info.yml27
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_snmp/snmp_config.yml54
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_snmp/snmp_info.yml29
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/alarm_info.yml25
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/current_info.yml27
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/firmware_info.yml25
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/power_info.yml27
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/status_info.yml25
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/temp_info.yml25
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_time_date/time_config.yml29
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_time_date/time_info.yml25
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_add.yml45
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_delete.yml33
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_edit.yml37
-rw-r--r--collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_get.yml33
24 files changed, 735 insertions, 0 deletions
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_config/cpm_config_backup.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_config/cpm_config_backup.yml
new file mode 100644
index 00000000..e7795ffb
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_config/cpm_config_backup.yml
@@ -0,0 +1,26 @@
+# ansible-playbook ./cpm_config_backup.yml -e ansible_hosts=nameofhost
+- name: Get Device Parameters
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=False
+ when: use_https is undefined
+ - set_fact: validate_certs=False
+ when: validate_certs is undefined
+
+ - name: run Get Network Interface
+ cpm_config_backup:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_config/cpm_config_restore.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_config/cpm_config_restore.yml
new file mode 100644
index 00000000..2a43e3db
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_config/cpm_config_restore.yml
@@ -0,0 +1,27 @@
+# ansible-playbook ./cpm_config_restore.yml -e ansible_hosts=nameofhost
+- name: Set Device Parameters
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=False
+ when: use_https is undefined
+ - set_fact: validate_certs=False
+ when: validate_certs is undefined
+
+ - name: run Set Device Parameters
+ cpm_config_restore:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ cpm_filename: "wti-192-10-10-239-2020-02-13T16-17-22-xml"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_interface/interface_config.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_interface/interface_config.yml
new file mode 100644
index 00000000..439b618a
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_interface/interface_config.yml
@@ -0,0 +1,31 @@
+# ansible-playbook ./interface_config.yml -e ansible_hosts=nameofhost
+- name: Set Network Interface parameters
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - cpm_interface_config:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ interface: "eth1"
+ ipv4netmask: "255.255.255.0"
+ ipv4gateway: "192.168.0.2"
+ ipv4address: "192.168.0.16"
+ negotiation: 0
+ ipv4dhcpenable: 0
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_interface/interface_info.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_interface/interface_info.yml
new file mode 100644
index 00000000..9b967f47
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_interface/interface_info.yml
@@ -0,0 +1,26 @@
+# ansible-playbook ./interface_info.yml -e ansible_hosts=nameofhost
+- name: Get Network Interface parameters
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - cpm_interface_info:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ interface: "eth0"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_iptables/iptables_config.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_iptables/iptables_config.yml
new file mode 100644
index 00000000..6b80cf71
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_iptables/iptables_config.yml
@@ -0,0 +1,35 @@
+# ansible-playbook ./iptables_config.yml -e ansible_hosts=nameofhost
+- name: Set Network IPTABLES parameters
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - cpm_iptables_config:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ protocol: 0
+ index:
+ - 1
+ - 2
+ - 48
+ command:
+ - "iptables the passed in command 2.."
+ - "iptables the passed in command 4.."
+ - "iptables the passed in command 48."
+ clear: 0
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_iptables/iptables_info.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_iptables/iptables_info.yml
new file mode 100644
index 00000000..d0f9f87b
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_iptables/iptables_info.yml
@@ -0,0 +1,25 @@
+# ansible-playbook ./iptables_info.yml -e ansible_hosts=nameofhost
+- name: Get Network IPTABLES Parameters
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - cpm_iptables_info:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_plugconfig/plug_config.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_plugconfig/plug_config.yml
new file mode 100644
index 00000000..aa96a7e8
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_plugconfig/plug_config.yml
@@ -0,0 +1,32 @@
+# ansible-playbook ./plug_config.yml -e ansible_hosts=nameofhost
+- name: Set Plug Parameters
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - name: run Set Plug Parameters
+ cpm_plugconfig:
+ cpm_action: "setplugconfig"
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ plug_id: "2" # plug 2 is being changed
+ plug_name: "plugname2"
+ plug_bootdelay: 1
+ plug_default: 0
+ plug_bootpriority: 99
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_plugconfig/plug_info.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_plugconfig/plug_info.yml
new file mode 100644
index 00000000..25bb39fe
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_plugconfig/plug_info.yml
@@ -0,0 +1,28 @@
+# ansible-playbook ./plug_info.yml -e ansible_hosts=nameofhost
+- name: Get Plug Parameters
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - name: run Get Plug Parameters of plug 1
+ cpm_plugconfig:
+ cpm_action: "getplugconfig"
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ plug_id: "1"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_serial_ports/serial_ports_config.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_serial_ports/serial_ports_config.yml
new file mode 100644
index 00000000..5f067075
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_serial_ports/serial_ports_config.yml
@@ -0,0 +1,39 @@
+# ansible-playbook ./serial_port_config.yml -e ansible_hosts=nameofhost
+- name: Set Serial Port Parameters
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - name: run Set Port Parameters of Port 4
+ cpm_serial_port_config:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ port: 4
+ baud: 4
+ portname: "Sam4"
+ handshake: 2
+ stopbits: 1
+ parity: 0
+ mode: 1
+ cmd: 0
+ seq: 1
+ tout: 1
+ echo: 0
+ break_allow: True
+ logoff: "^W"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_serial_ports/serial_ports_info.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_serial_ports/serial_ports_info.yml
new file mode 100644
index 00000000..2b96d3d8
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_serial_ports/serial_ports_info.yml
@@ -0,0 +1,27 @@
+# ansible-playbook ./serial_port_info.yml -e ansible_hosts=nameofhost
+- name: Get Serial Port Parameters
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - name: run Get Port Parameters of Ports 1, 2 and 3
+ cpm_serial_port_info:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ port: "1,2,3"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_snmp/snmp_config.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_snmp/snmp_config.yml
new file mode 100644
index 00000000..3eee8a22
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_snmp/snmp_config.yml
@@ -0,0 +1,54 @@
+# ansible-playbook ./snmp_config.yml -e ansible_hosts=nameofhost
+- name: Set Network SNMP Parameters
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - name: run Set interface parameters
+ cpm_snmp_config:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ interface: "eth0"
+ protocol: 0
+ clear: 0
+ enable: 0
+ readonly: 0
+ version: 2
+ index:
+ - 2
+ - 4
+ username:
+ - "username1b"
+ - "username3a"
+ authpass:
+ - "xxxxx1abc"
+ - "authpass3a"
+ privpass:
+ - "privpass2a"
+ - "privpass3a"
+ authpriv:
+ - 1
+ - 0
+ authproto:
+ - 0
+ - 0
+ privproto:
+ - 0
+ - 0
+
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_snmp/snmp_info.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_snmp/snmp_info.yml
new file mode 100644
index 00000000..357e8cf3
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_snmp/snmp_info.yml
@@ -0,0 +1,29 @@
+# ansible-playbook ./snmp_info.yml -e ansible_hosts=nameofhost
+- name: Get Network SNMP Parameters
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+ - set_fact: ansible_interface="eth0"
+ when: ansible_interface is undefined
+
+ - name: Run Get SNMP parameters
+ cpm_snmp_info:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ interface: "{{ansible_interface}}"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/alarm_info.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/alarm_info.yml
new file mode 100644
index 00000000..d132b9d9
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/alarm_info.yml
@@ -0,0 +1,25 @@
+# ansible-playbook ./alarm_info.yml -e ansible_hosts=yourhostname
+- name: Get Alarm information from WTI device
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - wti.remote.cpm_alarm_info:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/current_info.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/current_info.yml
new file mode 100644
index 00000000..356e5e9e
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/current_info.yml
@@ -0,0 +1,27 @@
+# ansible-playbook ./current_info.yml -e ansible_hosts=yourhostname
+- name: Get Current information from WTI device
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - wti.remote.cpm_current_info:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ cpm_startdate: "02-02-2020"
+ cpm_enddate: "02-28-2020"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/firmware_info.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/firmware_info.yml
new file mode 100644
index 00000000..614347f6
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/firmware_info.yml
@@ -0,0 +1,25 @@
+# ansible-playbook ./firmware_info.yml -e ansible_hosts=yourhostname
+- name: Get Firmware information from WTI device
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - wti.remote.cpm_firmware_info:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/power_info.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/power_info.yml
new file mode 100644
index 00000000..da0ae80f
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/power_info.yml
@@ -0,0 +1,27 @@
+# ansible-playbook ./temp_info.yml -e ansible_hosts=yourhostname
+- name: Get Power information from WTI device
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - wti.remote.cpm_power_info:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ cpm_startdate: "02-02-2020"
+ cpm_enddate: "02-28-2020"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/status_info.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/status_info.yml
new file mode 100644
index 00000000..f34d963f
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/status_info.yml
@@ -0,0 +1,25 @@
+# ansible-playbook ./status_info.yml -e ansible_hosts=yourhostname
+- name: Get Status information from WTI device
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - wti.remote.cpm_status_info:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/temp_info.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/temp_info.yml
new file mode 100644
index 00000000..e8a8896a
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_status/temp_info.yml
@@ -0,0 +1,25 @@
+# ansible-playbook ./temp_info.yml -e ansible_hosts=yourhostname
+- name: Get Temperature information from WTI device
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - wti.remote.cpm_temp_info:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_time_date/time_config.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_time_date/time_config.yml
new file mode 100644
index 00000000..0580d081
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_time_date/time_config.yml
@@ -0,0 +1,29 @@
+# ansible-playbook ./time_config.yml -e ansible_hosts=nameofhost
+- name: Set Time Date parameters
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=False
+ when: use_https is undefined
+ - set_fact: validate_certs=False
+ when: validate_certs is undefined
+
+ - cpm_time_config:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ timezone: 5
+ ntpenable: 1
+ ipv4address: "time1.google.com,time2.google.com"
+ timeout: 4
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_time_date/time_info.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_time_date/time_info.yml
new file mode 100644
index 00000000..e6dd887a
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_time_date/time_info.yml
@@ -0,0 +1,25 @@
+# ansible-playbook ./time_info.yml -e ansible_hosts=yourhostname
+- name: Get Time/Date and NTP parameters
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - cpm_time_info:
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_add.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_add.yml
new file mode 100644
index 00000000..a15fe25d
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_add.yml
@@ -0,0 +1,45 @@
+# ansible-playbook ./user_add.yml -e ansible_hosts=nameofhost
+- name: Add New User
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ vars_prompt:
+ - name: "user_name"
+ prompt: "Enter Username"
+ private: no
+ - name: "user_pass"
+ prompt: "Enter Password"
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - name: run Add New User
+ cpm_user:
+ cpm_action: "adduser"
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ user_name: "{{user_name}}" # pass as -e user_name=sammy on the commandline
+ user_pass: "{{user_pass}}"
+ user_accesslevel: 1
+ user_accessserial: 0
+ user_accessapi: 1
+ user_accessweb: 0
+ user_accessoutbound: 1
+ user_accessssh: 1
+ user_portaccess: "10001110"
+ user_plugaccess: "11110000"
+ user_callbackphone: "9495551212"
+ use_https: "{{use_https}}"
+ validate_certs: "{{validate_certs}}"
+
+ register: output
+ - name: dump JSON output
+ debug:
+ msg: "{{ output.data }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_delete.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_delete.yml
new file mode 100644
index 00000000..e6e45054
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_delete.yml
@@ -0,0 +1,33 @@
+# ansible-playbook ./user_delete.yml -e ansible_hosts=nameofhost
+- name: Delete Exiting User
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ vars_prompt:
+ - name: "user_name"
+ prompt: "Enter Username"
+ private: no
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - name: run Delete Exiting User
+ cpm_user:
+ cpm_action: "deleteuser"
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ user_name: "{{user_name}}" # pass as -e user_name=sammy on the commandline
+ use_https: "{{use_https}}"
+ validate_certs: false
+
+ register: output
+ - name: dump JSON output
+ debug:
+ msg: "{{ output.data }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_edit.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_edit.yml
new file mode 100644
index 00000000..00dc46ba
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_edit.yml
@@ -0,0 +1,37 @@
+# ansible-playbook ./user_edit.yml -e ansible_hosts=nameofhost
+- name: Edit Exiting User
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ vars_prompt:
+ - name: "user_name"
+ prompt: "Enter Username"
+ private: no
+ - name: "user_pass"
+ prompt: "Enter Password"
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - name: Run Edit Existing User
+ cpm_user:
+ cpm_action: "edituser"
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ user_name: "{{user_name}}" # pass as -e user_name=sammy on the commandline
+ user_pass: "{{user_pass}}" # pass as -e user_pass=sammy on the commandline
+ user_accesslevel: 3
+ use_https: "{{use_https}}"
+ validate_certs: false
+
+ register: testout
+ - name: dump test output
+ debug:
+ msg: "{{ testout['data'] }}"
diff --git a/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_get.yml b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_get.yml
new file mode 100644
index 00000000..e782b4c2
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/wti/remote/playbooks/cpm_user/user_get.yml
@@ -0,0 +1,33 @@
+# ansible-playbook ./user_get.yml -e ansible_hosts=nameofhost
+- name: Get User Parameters
+ hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline
+ collections:
+ - wti.remote
+ connection: local
+ gather_facts: False
+
+ vars_prompt:
+ - name: "user_name"
+ prompt: "Enter Username"
+ private: no
+
+ tasks:
+ - set_fact: use_https=True
+ when: use_https is undefined
+ - set_fact: validate_certs=True
+ when: validate_certs is undefined
+
+ - name: run Get User Parameters
+ cpm_user:
+ cpm_action: "getuser"
+ cpm_url: "{{ansible_host}}"
+ cpm_username: "{{ansible_user}}"
+ cpm_password: "{{ansible_pw}}"
+ user_name: "{{user_name}}" # pass as -e user_name=sammy on the commandline
+ use_https: "{{use_https}}"
+ validate_certs: false
+
+ register: output
+ - name: dump JSON output
+ debug:
+ msg: "{{ output.data }}"