summaryrefslogtreecommitdiffstats
path: root/ansible_collections/inspur/sm/playbooks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
commit975f66f2eebe9dadba04f275774d4ab83f74cf25 (patch)
tree89bd26a93aaae6a25749145b7e4bca4a1e75b2be /ansible_collections/inspur/sm/playbooks
parentInitial commit. (diff)
downloadansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.tar.xz
ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.zip
Adding upstream version 7.7.0+dfsg.upstream/7.7.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/inspur/sm/playbooks')
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-ad_group.yml35
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-ad_group_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-ad_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-adapter_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-add_ad_group.yml20
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-add_ldap_group.yml20
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-add_ldisk.yml31
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-add_user.yml19
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-add_user_group.yml17
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-alert_policy_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-audit_log_info.yml26
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-auto_capture_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-backplane_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-backup.yml17
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-bios_export.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-bios_import.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-bios_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-bmc_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-boot_image_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-boot_option_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-clear_audit_log.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-clear_event_log.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-clear_system_log.yml21
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-collect_blackbox.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-collect_log.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-connect_media_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-cpu_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-del_ad_group.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-del_ldap_group.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-del_session.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-del_user.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-del_user_group.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-dns_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-download_auto_screenshot.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-download_manual_screenshot.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_ad.yml28
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_ad_group.yml21
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_alert_policy.yml26
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_auto_capture.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_bios.yml23
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_boot_image.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_boot_option.yml18
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_connect_media.yml18
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_dns.yml41
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_event_log_policy.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_fan.yml23
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_fru.yml17
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_ipv4.yml34
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_ipv6.yml35
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_kvm.yml22
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_ldap.yml28
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_ldap_group.yml21
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_ldisk.yml23
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_log_setting.yml25
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_manual_capture.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_media_instance.yml24
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_ncsi.yml19
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_network.yml17
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_network_bond.yml18
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_network_link.yml25
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_ntp.yml28
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_pass_user.yml17
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_pdisk.yml23
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_power_budget.yml47
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_power_restore.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_power_status.yml16
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_preserve_config.yml31
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_priv_user.yml18
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_psu_config.yml17
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_psu_peak.yml22
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_restore_factory_default.yml26
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_service.yml18
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_smtp.yml33
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_smtp_com.yml26
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_smtp_dest.yml25
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_snmp.yml17
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_snmp_trap.yml32
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_threshold.yml17
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_uid.yml22
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_user_group.yml17
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_virtual_media.yml27
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-edit_vlan.yml25
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-event_log_info.yml26
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-event_log_policy_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-fan_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-fru_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-fw_verison_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-gpu_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-hard_disk_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-kvm_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-ldap_group.yml35
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-ldap_group_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-ldap_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-ldisk_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-log_setting_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-media_instance_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-mem_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-ncsi_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-network_bond_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-network_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-network_link_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-ntp_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-onboard_disk_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-pcie_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-pdisk_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-power_budget_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-power_consumption_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-power_restore_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-power_status_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-preserver_config_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-psu_config_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-psu_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-psu_peak_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-raid_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-reset_bmc.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-reset_kvm.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-restore.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-self_test_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-sensor_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-server_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-service_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-session_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-smtp_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-snmp_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-snmp_trap_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-system_log_info.yml27
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-temp_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-threshold_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-uid_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-update_cpld.yml22
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-update_fw.yml24
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-user.yml29
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-user_group.yml31
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-user_group_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-user_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-virtual_media_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/examples-volt_info.yml15
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/overall/examples-ad_overall.yml77
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/overall/examples-ldap_overall.yml81
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/overall/examples-system_info_overall.yml65
-rw-r--r--ansible_collections/inspur/sm/playbooks/modules/overall/examples-user_overall.yml86
141 files changed, 2920 insertions, 0 deletions
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-ad_group.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-ad_group.yml
new file mode 100644
index 000000000..fdef515fd
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-ad_group.yml
@@ -0,0 +1,35 @@
+- name: Ad group test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Add active directory group information"
+ inspur.sm.ad_group:
+ state: "present"
+ name: "wbs"
+ domain: "inspur.com"
+ pri: "administrator"
+ kvm: "enable"
+ vm: "disable"
+ provider: "{{ ism }}"
+
+ - name: "Set active directory group information"
+ inspur.sm.ad_group:
+ state: "present"
+ name: "wbs"
+ pri: "user"
+ kvm: "disable"
+ provider: "{{ ism }}"
+
+ - name: "Delete active directory group information"
+ inspur.sm.ad_group:
+ state: "absent"
+ name: "wbs"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-ad_group_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-ad_group_info.yml
new file mode 100644
index 000000000..97dbb46a2
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-ad_group_info.yml
@@ -0,0 +1,15 @@
+- name: ad group test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get active directory group information"
+ inspur.sm.ad_group_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-ad_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-ad_info.yml
new file mode 100644
index 000000000..a512265a6
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-ad_info.yml
@@ -0,0 +1,15 @@
+- name: ad test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get active directory information"
+ inspur.sm.ad_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-adapter_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-adapter_info.yml
new file mode 100644
index 000000000..4a104a141
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-adapter_info.yml
@@ -0,0 +1,15 @@
+- name: adapter test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get adapter information"
+ inspur.sm.adapter_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-add_ad_group.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-add_ad_group.yml
new file mode 100644
index 000000000..6dae3bc94
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-add_ad_group.yml
@@ -0,0 +1,20 @@
+- name: ad group test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "add active directory group information"
+ inspur.sm.add_ad_group:
+ name: "wbs"
+ domain: "inspur.com"
+ pri: "administrator"
+ kvm: "enable"
+ vm: "disable"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-add_ldap_group.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-add_ldap_group.yml
new file mode 100644
index 000000000..db02be244
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-add_ldap_group.yml
@@ -0,0 +1,20 @@
+- name: ldap group test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "add ldap group information"
+ inspur.sm.add_ldap_group.py:
+ name: "wbs"
+ base: "cn=manager"
+ pri: "administrator"
+ kvm: "enable"
+ vm: "disable"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-add_ldisk.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-add_ldisk.yml
new file mode 100644
index 000000000..4fbaabda3
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-add_ldisk.yml
@@ -0,0 +1,31 @@
+- name: add ldisk test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "show pdisk information"
+ inspur.sm.add_ldisk:
+ info: "show"
+ provider: "{{ ism }}"
+
+ - name: "add ldisk"
+ inspur.sm.add_ldisk:
+ ctrl_id: 0
+ level: 1
+ size: 1
+ access: 1
+ r: 1
+ w: 1
+ io: 1
+ cache: 1
+ init: 2
+ select: 10
+ slot: 0,1
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-add_user.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-add_user.yml
new file mode 100644
index 000000000..800e7d8d4
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-add_user.yml
@@ -0,0 +1,19 @@
+- name: add user test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "add user"
+ inspur.sm.add_user:
+ uname: "wbs"
+ upass: "admin"
+ role_id: "Administrator"
+ priv: "kvm,sol"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-add_user_group.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-add_user_group.yml
new file mode 100644
index 000000000..58d3f61e9
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-add_user_group.yml
@@ -0,0 +1,17 @@
+- name: add user group test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "add user group"
+ inspur.sm.add_user_group:
+ name: "test"
+ pri: "administrator"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-alert_policy_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-alert_policy_info.yml
new file mode 100644
index 000000000..c9ec707ee
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-alert_policy_info.yml
@@ -0,0 +1,15 @@
+- name: alert test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get alert policy"
+ inspur.sm.alert_policy_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-audit_log_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-audit_log_info.yml
new file mode 100644
index 000000000..b59cb75dc
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-audit_log_info.yml
@@ -0,0 +1,26 @@
+- name: bmc audit log test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get bmc audit log information"
+ inspur.sm.audit_log_info:
+ log_time: "2020-06-01T12:30+08:00"
+ provider: "{{ ism }}"
+
+ - name: "get bmc audit log information"
+ inspur.sm.audit_log_info:
+ count: 30
+ provider: "{{ ism }}"
+
+ - name: "get bmc audit log information"
+ inspur.sm.audit_log_info:
+ audit_file: "/home/wbs/wbs.log"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-auto_capture_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-auto_capture_info.yml
new file mode 100644
index 000000000..c3d3039f8
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-auto_capture_info.yml
@@ -0,0 +1,15 @@
+- name: Screen test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get auto capture screen information"
+ inspur.sm.auto_capture_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-backplane_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-backplane_info.yml
new file mode 100644
index 000000000..ffe632fed
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-backplane_info.yml
@@ -0,0 +1,15 @@
+- name: disk backplane test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get backplane information"
+ inspur.sm.backplane_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-backup.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-backup.yml
new file mode 100644
index 000000000..b3dc48c00
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-backup.yml
@@ -0,0 +1,17 @@
+- name: backup test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: " backup server settings"
+ inspur.sm.backup:
+ bak_file: "/home/wbs/"
+ item: "all"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-bios_export.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-bios_export.yml
new file mode 100644
index 000000000..08f7f132f
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-bios_export.yml
@@ -0,0 +1,16 @@
+- name: bios test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "export bios config"
+ inspur.sm.bios_export:
+ file_url: "/home/wbs/bios.json"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-bios_import.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-bios_import.yml
new file mode 100644
index 000000000..b442a32e3
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-bios_import.yml
@@ -0,0 +1,16 @@
+- name: bios test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "import bios config"
+ inspur.sm.bios_import:
+ file_url: "/home/wbs/bios.conf"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-bios_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-bios_info.yml
new file mode 100644
index 000000000..773bd6e2a
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-bios_info.yml
@@ -0,0 +1,15 @@
+- name: bios test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get bios setup"
+ inspur.sm.bios_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-bmc_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-bmc_info.yml
new file mode 100644
index 000000000..60462c50b
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-bmc_info.yml
@@ -0,0 +1,15 @@
+- name: bmc info test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get BMC information"
+ inspur.sm.bmc_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-boot_image_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-boot_image_info.yml
new file mode 100644
index 000000000..8cc16adb5
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-boot_image_info.yml
@@ -0,0 +1,15 @@
+- name: Boot image test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get bmc boot image information"
+ inspur.sm.boot_image_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-boot_option_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-boot_option_info.yml
new file mode 100644
index 000000000..e271cb49d
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-boot_option_info.yml
@@ -0,0 +1,15 @@
+- name: boot test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get bios boot option"
+ inspur.sm.boot_option_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-clear_audit_log.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-clear_audit_log.yml
new file mode 100644
index 000000000..af5d43f94
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-clear_audit_log.yml
@@ -0,0 +1,15 @@
+- name: clear BMC audit log test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "clear BMC audit log "
+ inspur.sm.clear_audit_log:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-clear_event_log.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-clear_event_log.yml
new file mode 100644
index 000000000..2afc61c69
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-clear_event_log.yml
@@ -0,0 +1,15 @@
+- name: clear event log test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "clear event log"
+ inspur.sm.clear_event_log:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-clear_system_log.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-clear_system_log.yml
new file mode 100644
index 000000000..ff687eff2
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-clear_system_log.yml
@@ -0,0 +1,21 @@
+- name: clear BMC system log test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "clear BMC system log"
+ inspur.sm.clear_system_log:
+ level: "alert"
+ provider: "{{ ism }}"
+
+ - name: "clear BMC system log"
+ inspur.sm.clear_system_log:
+ level: "all"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-collect_blackbox.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-collect_blackbox.yml
new file mode 100644
index 000000000..99ff4c23a
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-collect_blackbox.yml
@@ -0,0 +1,16 @@
+- name: collect blackbox test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "collect blackbox log"
+ inspur.sm.collect_blackbox:
+ file_url: "/home/wbs/wbs.log"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-collect_log.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-collect_log.yml
new file mode 100644
index 000000000..d7edf5774
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-collect_log.yml
@@ -0,0 +1,16 @@
+- name: Collect test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Collect logs"
+ inspur.sm.collect_log:
+ file_url: "/home/wbs/test.tar"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-connect_media_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-connect_media_info.yml
new file mode 100644
index 000000000..999191c35
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-connect_media_info.yml
@@ -0,0 +1,15 @@
+- name: Connect media test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get remote images redirection information"
+ inspur.sm.connect_media_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-cpu_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-cpu_info.yml
new file mode 100644
index 000000000..1d12fb1e3
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-cpu_info.yml
@@ -0,0 +1,15 @@
+- name: CPU test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get cpu information"
+ inspur.sm.cpu_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-del_ad_group.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-del_ad_group.yml
new file mode 100644
index 000000000..55ad6641c
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-del_ad_group.yml
@@ -0,0 +1,16 @@
+- name: ad group test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "delete active directory group information"
+ inspur.sm.del_ad_group:
+ name: "inspur"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-del_ldap_group.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-del_ldap_group.yml
new file mode 100644
index 000000000..febd339ce
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-del_ldap_group.yml
@@ -0,0 +1,16 @@
+- name: ldap group test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "delete ldap group information"
+ inspur.sm.del_ldap_group:
+ name: "inspur"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-del_session.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-del_session.yml
new file mode 100644
index 000000000..c614f7a6c
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-del_session.yml
@@ -0,0 +1,16 @@
+- name: Delete session test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Delete session"
+ inspur.sm.del_session:
+ sid: "223"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-del_user.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-del_user.yml
new file mode 100644
index 000000000..5e892e33e
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-del_user.yml
@@ -0,0 +1,16 @@
+- name: del user test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "del user"
+ inspur.sm.del_user:
+ uname: "wbs"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-del_user_group.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-del_user_group.yml
new file mode 100644
index 000000000..87b8a13d4
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-del_user_group.yml
@@ -0,0 +1,16 @@
+- name: delete user group test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "delete user group"
+ inspur.sm.del_user_group:
+ name: "test"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-dns_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-dns_info.yml
new file mode 100644
index 000000000..301b5dd09
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-dns_info.yml
@@ -0,0 +1,15 @@
+- name: dns test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get dns information"
+ inspur.sm.dns_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-download_auto_screenshot.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-download_auto_screenshot.yml
new file mode 100644
index 000000000..fc8d7dd75
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-download_auto_screenshot.yml
@@ -0,0 +1,16 @@
+- name: Screen test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Download auto screenshots"
+ inspur.sm.download_auto_screenshot:
+ file_url: "/home/wbs/screen"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-download_manual_screenshot.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-download_manual_screenshot.yml
new file mode 100644
index 000000000..9f4566ce1
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-download_manual_screenshot.yml
@@ -0,0 +1,16 @@
+- name: Screen test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Download manual screenshots"
+ inspur.sm.download_manual_screenshot:
+ file_url: "/home/wbs/screen"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ad.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ad.yml
new file mode 100644
index 000000000..bc12fe6ed
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ad.yml
@@ -0,0 +1,28 @@
+- name: ad test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set active directory information"
+ inspur.sm.edit_ad:
+ enable: "disable"
+ provider: "{{ ism }}"
+
+ - name: "set active directory information"
+ inspur.sm.edit_ad:
+ enable: "enable"
+ name: "inspur"
+ code: "123456"
+ timeout: 120
+ domain: "inspur.com"
+ addr1: "100.2.2.2"
+ addr2: "100.2.2.3"
+ addr3: "100.2.2.4"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ad_group.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ad_group.yml
new file mode 100644
index 000000000..34239a01c
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ad_group.yml
@@ -0,0 +1,21 @@
+- name: ad group test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "edit active directory group information"
+ inspur.sm.edit_ad_group:
+ id: "1"
+ name: "wbs"
+ domain: "inspur.com"
+ pri: "administrator"
+ kvm: "enable"
+ vm: "disable"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_alert_policy.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_alert_policy.yml
new file mode 100644
index 000000000..a23200003
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_alert_policy.yml
@@ -0,0 +1,26 @@
+- name: alert policy test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set alert policy"
+ inspur.sm.edit_alert_policy:
+ id: 1
+ status: "enable"
+ type: "snmp"
+ destination: "100.2.2.2"
+ channel: "shared"
+ provider: "{{ ism }}"
+
+ - name: "set alert policy"
+ inspur.sm.edit_alert_policy:
+ id: 1
+ status: "disable"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_auto_capture.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_auto_capture.yml
new file mode 100644
index 000000000..ad64cc57f
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_auto_capture.yml
@@ -0,0 +1,16 @@
+- name: Screen test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set auto capture screen"
+ inspur.sm.edit_auto_capture:
+ status: "enable"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_bios.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_bios.yml
new file mode 100644
index 000000000..9ef246e82
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_bios.yml
@@ -0,0 +1,23 @@
+- name: bios test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set bios setup"
+ inspur.sm.edit_bios:
+ attribute: "VMX"
+ value: "Disable"
+ provider: "{{ ism }}"
+
+ - name: "set bios setup"
+ inspur.sm.edit_bios:
+ attribute: "VMX"
+ value: "Enable"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_boot_image.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_boot_image.yml
new file mode 100644
index 000000000..fb696070c
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_boot_image.yml
@@ -0,0 +1,16 @@
+- name: Boot image test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set bmc boot image"
+ inspur.sm.edit_boot_image:
+ image: 2
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_boot_option.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_boot_option.yml
new file mode 100644
index 000000000..e084ee7da
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_boot_option.yml
@@ -0,0 +1,18 @@
+- name: boot test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set bios boot option"
+ inspur.sm.edit_boot_option:
+ device: "PXE"
+ effective: "Once"
+ mode: "Legacy"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_connect_media.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_connect_media.yml
new file mode 100644
index 000000000..73eeeb675
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_connect_media.yml
@@ -0,0 +1,18 @@
+- name: Connect media test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set remote image redirection"
+ inspur.sm.edit_connect_media:
+ image_type: "CD"
+ op_type: "start"
+ image_name: "aa.iso"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_dns.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_dns.yml
new file mode 100644
index 000000000..c285a6e83
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_dns.yml
@@ -0,0 +1,41 @@
+- name: dns test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set dns information"
+ inspur.sm.edit_dns:
+ dns_status: "disable"
+ provider: "{{ ism }}"
+
+ - name: "set dns information"
+ inspur.sm.edit_dns:
+ dns_status: "enable"
+ host_cfg: "manual"
+ host_name: "123456789"
+ domain_manual: "auto"
+ domain_iface: "eth0_v4"
+ dns_manual: "manual"
+ dns_server1: "100.2.2.2"
+ dns_server2: "100.2.2.3"
+ dns_server3: "100.2.2.4"
+ provider: "{{ ism }}"
+
+ - name: "set dns information"
+ edit_dns:
+ dns_status: "enable"
+ host_cfg: "manual"
+ host_name: "123456789"
+ domain_manual: "manual"
+ domain_name: "inspur.com"
+ dns_manual: "auto"
+ dns_iface: "eth0"
+ dns_priority: "4"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_event_log_policy.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_event_log_policy.yml
new file mode 100644
index 000000000..b38f6a541
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_event_log_policy.yml
@@ -0,0 +1,16 @@
+- name: Event log policy test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set event log policy"
+ inspur.sm.edit_event_log_policy:
+ policy: "Linear"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_fan.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_fan.yml
new file mode 100644
index 000000000..268271708
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_fan.yml
@@ -0,0 +1,23 @@
+- name: fan test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set fan information"
+ inspur.sm.edit_fan:
+ mode: "Automatic"
+ provider: "{{ ism }}"
+
+ - name: "set fan information"
+ inspur.sm.edit_fan:
+ mode: "Manual"
+ id: 1
+ fan_speed: 80
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_fru.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_fru.yml
new file mode 100644
index 000000000..4a3724663
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_fru.yml
@@ -0,0 +1,17 @@
+- name: Fru test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set Fru"
+ inspur.sm.edit_fru:
+ attribute: "CP"
+ value: "Inspur"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ipv4.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ipv4.yml
new file mode 100644
index 000000000..cee2ade83
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ipv4.yml
@@ -0,0 +1,34 @@
+- name: ipv4 test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set ipv4 information"
+ inspur.sm.edit_ipv4:
+ interface_name: "eth0"
+ ipv4_status: "disable"
+ provider: "{{ ism }}"
+
+ - name: "set ipv4 information"
+ inspur.sm.edit_ipv4:
+ interface_name: "eth0"
+ ipv4_status: "enable"
+ ipv4_dhcp_enable: "dhcp"
+ provider: "{{ ism }}"
+
+ - name: "set ipv4 information"
+ inspur.sm.edit_ipv4:
+ interface_name: "eth0"
+ ipv4_status: "enable"
+ ipv4_dhcp_enable: "static"
+ ipv4_address: "100.2.36.10"
+ ipv4_subnet: "255.255.255.0"
+ ipv4_gateway: "100.2.36.1"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ipv6.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ipv6.yml
new file mode 100644
index 000000000..90eaf3656
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ipv6.yml
@@ -0,0 +1,35 @@
+- name: ipv6 test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set ipv6 information"
+ inspur.sm.edit_ipv6:
+ interface_name: "eth0"
+ ipv6_status: "disable"
+ provider: "{{ ism }}"
+
+ - name: "set ipv6 information"
+ inspur.sm.edit_ipv6:
+ interface_name: "eth0"
+ ipv6_status: "enable"
+ ipv6_dhcp_enable: "dhcp"
+ provider: "{{ ism }}"
+
+ - name: "set ipv6 information"
+ inspur.sm.edit_ipv6:
+ interface_name: "eth0"
+ ipv6_status: "enable"
+ ipv6_dhcp_enable: "static"
+ ipv6_address: "::ffff:100:2:36:10"
+ ipv6_index: 12
+ ipv6_prefix: 16
+ ipv6_gateway: "::"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_kvm.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_kvm.yml
new file mode 100644
index 000000000..bb7fd784b
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_kvm.yml
@@ -0,0 +1,22 @@
+- name: KVM test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set KVM"
+ inspur.sm.edit_kvm:
+ kvm_encryption: "enable"
+ media_attach: "auto"
+ keyboard_language: "AD"
+ retry_count: 13
+ retry_time_interval: 10
+ local_monitor_off: "enable"
+ automatic_off: "enable"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ldap.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ldap.yml
new file mode 100644
index 000000000..f0a523878
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ldap.yml
@@ -0,0 +1,28 @@
+- name: ldap test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set ldap information"
+ inspur.sm.edit_ldap:
+ enable: "disable"
+ provider: "{{ ism }}"
+
+ - name: "set ldap information"
+ inspur.sm.edit_ldap:
+ enable: "enable"
+ encry: "SSL"
+ address: "100.2.2.2"
+ server_port: 389
+ dn: "cn=manager,ou=login,dc=domain,dc=com"
+ code: "123456"
+ base: "cn=manager"
+ attr: "uid"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ldap_group.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ldap_group.yml
new file mode 100644
index 000000000..cb57d581f
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ldap_group.yml
@@ -0,0 +1,21 @@
+- name: ldap group test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "edit ldap group information"
+ inspur.sm.edit_ldap_group:
+ id: "1"
+ name: "wbs"
+ base: "cn=manager"
+ pri: "administrator"
+ kvm: "enable"
+ vm: "disable"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ldisk.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ldisk.yml
new file mode 100644
index 000000000..d372b53f3
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ldisk.yml
@@ -0,0 +1,23 @@
+- name: edit ldisk test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "show ldisk information"
+ inspur.sm.edit_ldisk:
+ info: "show"
+ provider: "{{ ism }}"
+
+ - name: "edit ldisk"
+ inspur.sm.edit_ldisk:
+ ctrl_id: 0
+ ldisk_id: 1
+ option: "LOC"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_log_setting.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_log_setting.yml
new file mode 100644
index 000000000..08d0ebbc5
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_log_setting.yml
@@ -0,0 +1,25 @@
+- name: edit log setting test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "edit bmc system log setting"
+ inspur.sm.edit_log_setting:
+ status: "enable"
+ type: "both"
+ provider: "{{ ism }}"
+
+ - name: "edit bmc audit log setting"
+ inspur.sm.edit_log_setting:
+ audit_status: "enable"
+ audit_type: "remote"
+ server_addr: "100.2.126.11"
+ server_port: "514"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_manual_capture.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_manual_capture.yml
new file mode 100644
index 000000000..ebae4d762
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_manual_capture.yml
@@ -0,0 +1,16 @@
+- name: Screen test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set manual capture screen"
+ inspur.sm.edit_manual_capture:
+ type: "capture"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_media_instance.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_media_instance.yml
new file mode 100644
index 000000000..ab187597c
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_media_instance.yml
@@ -0,0 +1,24 @@
+- name: Media instance test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set media instance"
+ inspur.sm.edit_media_instance:
+ num_fd: 1
+ num_cd: 1
+ num_hd: 1
+ kvm_num_fd: 1
+ kvm_num_cd: 1
+ kvm_num_hd: 1
+ sd_media: "Enable"
+ secure_channel: "Enable"
+ power_save_mode: "Enable"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ncsi.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ncsi.yml
new file mode 100644
index 000000000..e9c94c061
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ncsi.yml
@@ -0,0 +1,19 @@
+- name: NCSI test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set ncsi information"
+ inspur.sm.edit_ncsi:
+ mode: "manual"
+ nic_type: "PCIE"
+ interface_name: "eth0"
+ channel_number: 1
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_network.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_network.yml
new file mode 100644
index 000000000..e19d31d49
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_network.yml
@@ -0,0 +1,17 @@
+- name: network test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set network information"
+ inspur.sm.edit_network:
+ interface_name: "eth0"
+ lan_enable: "enable"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_network_bond.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_network_bond.yml
new file mode 100644
index 000000000..d421cdde9
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_network_bond.yml
@@ -0,0 +1,18 @@
+- name: bond test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set network bond"
+ inspur.sm.edit_network_bond:
+ bond: "enable"
+ interface: "dedicated"
+ auto_config: "enable"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_network_link.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_network_link.yml
new file mode 100644
index 000000000..c8e63c491
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_network_link.yml
@@ -0,0 +1,25 @@
+- name: link test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set network link"
+ inspur.sm.edit_network_link:
+ interface: "dedicated"
+ auto_nego: "enable"
+ provider: "{{ ism }}"
+
+ - name: "Set network link"
+ inspur.sm.edit_network_link:
+ interface: "dedicated"
+ auto_nego: "disable"
+ link_speed: 100
+ duplex_mode: "FULL"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ntp.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ntp.yml
new file mode 100644
index 000000000..8bc60ac5c
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_ntp.yml
@@ -0,0 +1,28 @@
+- name: NTP test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set ntp"
+ inspur.sm.edit_ntp:
+ auto_date: "enable"
+ server2: "time.nist.gov"
+ provider: "{{ ism }}"
+
+ - name: "set ntp"
+ inspur.sm.edit_ntp:
+ auto_date: "disable"
+ ntp_time: "20200609083600"
+ provider: "{{ ism }}"
+
+ - name: "set ntp"
+ inspur.sm.edit_ntp:
+ time_zone: 8
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_pass_user.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_pass_user.yml
new file mode 100644
index 000000000..82fcf8058
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_pass_user.yml
@@ -0,0 +1,17 @@
+- name: edit user password test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "change user password"
+ inspur.sm.edit_pass_user:
+ uname: "wbs"
+ upass: "admin1"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_pdisk.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_pdisk.yml
new file mode 100644
index 000000000..a39d9dfdd
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_pdisk.yml
@@ -0,0 +1,23 @@
+- name: Edit pdisk test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Show pdisk information"
+ inspur.sm.edit_pdisk:
+ info: "show"
+ provider: "{{ ism }}"
+
+ - name: "Edit pdisk"
+ inspur.sm.edit_pdisk:
+ ctrl_id: 0
+ device_id: 1
+ option: "LOC"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_power_budget.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_power_budget.yml
new file mode 100644
index 000000000..5453f5602
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_power_budget.yml
@@ -0,0 +1,47 @@
+- name: Power budget test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get power budget range"
+ inspur.sm.edit_power_budget:
+ range: True
+ provider: "{{ ism }}"
+
+ - name: "add power budget"
+ inspur.sm.edit_power_budget:
+ action: "add"
+ id: 1
+ watts: 1500
+ start1: 2
+ end1: 5
+ week1:
+ - Mon
+ - Wed
+ - Fri
+ provider: "{{ ism }}"
+
+ - name: "Set power budget status to open"
+ inspur.sm.edit_power_budget:
+ action: "open"
+ id: 1
+ provider: "{{ ism }}"
+
+ - name: "Set power budget status to close"
+ inspur.sm.edit_power_budget:
+ action: "close"
+ id: 1
+ provider: "{{ ism }}"
+
+ - name: "Delete power budget"
+ inspur.sm.edit_power_budget:
+ action: "delete"
+ id: 1
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_power_restore.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_power_restore.yml
new file mode 100644
index 000000000..2adb679df
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_power_restore.yml
@@ -0,0 +1,16 @@
+- name: power restore test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set power restore information"
+ inspur.sm.edit_power_restore:
+ option: "on"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_power_status.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_power_status.yml
new file mode 100644
index 000000000..5652cc756
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_power_status.yml
@@ -0,0 +1,16 @@
+- name: power status test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set power status information"
+ inspur.sm.edit_power_status:
+ state: "On"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_preserve_config.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_preserve_config.yml
new file mode 100644
index 000000000..79159c3ac
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_preserve_config.yml
@@ -0,0 +1,31 @@
+- name: Preserve test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set preserve all"
+ inspur.sm.edit_preserve_config:
+ setting: "all"
+ provider: "{{ ism }}"
+
+ - name: "Set preserve none"
+ inspur.sm.edit_preserve_config:
+ setting: "none"
+ provider: "{{ ism }}"
+
+ - name: "Set preserve manual"
+ inspur.sm.edit_preserve_config:
+ setting: "manual"
+ override:
+ - "fru"
+ - "ntp"
+ - "network"
+ - "user"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_priv_user.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_priv_user.yml
new file mode 100644
index 000000000..a1ce8360e
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_priv_user.yml
@@ -0,0 +1,18 @@
+- name: edit user privilege test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "change user privilege"
+ inspur.sm.edit_priv_user:
+ uname: "wbs"
+ role_id: "Administrator"
+ priv: "kvm,sol"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_psu_config.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_psu_config.yml
new file mode 100644
index 000000000..63158d7e9
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_psu_config.yml
@@ -0,0 +1,17 @@
+- name: psu config test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set psu config information"
+ inspur.sm.edit_psu_config:
+ id: 1
+ switch: "active"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_psu_peak.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_psu_peak.yml
new file mode 100644
index 000000000..958e78c8c
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_psu_peak.yml
@@ -0,0 +1,22 @@
+- name: psu peak test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set psu peak information"
+ inspur.sm.edit_psu_peak:
+ status: "disable"
+ provider: "{{ ism }}"
+
+ - name: "set psu peak information"
+ inspur.sm.edit_psu_peak:
+ status: "enable"
+ time: 10
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_restore_factory_default.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_restore_factory_default.yml
new file mode 100644
index 000000000..457b73954
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_restore_factory_default.yml
@@ -0,0 +1,26 @@
+- name: Restore default test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set restore default auto"
+ inspur.sm.edit_restore_factory_default:
+ setting: "all"
+ provider: "{{ ism }}"
+
+ - name: "Set restore default manual"
+ inspur.sm.edit_restore_factory_default:
+ mode: "manual"
+ override:
+ - fru
+ - ntp
+ - network
+ - user
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_service.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_service.yml
new file mode 100644
index 000000000..3a3467377
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_service.yml
@@ -0,0 +1,18 @@
+- name: edit service test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "edit kvm"
+ inspur.sm.edit_service:
+ service_name: "kvm"
+ state: "active"
+ timeout: "1200"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_smtp.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_smtp.yml
new file mode 100644
index 000000000..02e7478bf
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_smtp.yml
@@ -0,0 +1,33 @@
+- name: smtp test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set smtp information"
+ inspur.sm.edit_smtp:
+ interface: "eth0"
+ email: "inspur@Inspur.com"
+ primary_status: "enable"
+ primary_ip: "100.2.2.2"
+ primary_name: "inspur"
+ primary_auth: "disable"
+ provider: "{{ ism }}"
+
+ - name: "set smtp information"
+ inspur.sm.edit_smtp:
+ interface: "eth0"
+ email: "inspur@Inspur.com"
+ primary_status: "enable"
+ primary_ip: "100.2.2.2"
+ primary_name: "inspur"
+ primary_auth: "enable"
+ primary_username: "test"
+ primary_password: "123456"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_smtp_com.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_smtp_com.yml
new file mode 100644
index 000000000..f6eab6189
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_smtp_com.yml
@@ -0,0 +1,26 @@
+- name: Smtp com test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set smtp com information"
+ inspur.sm.edit_smtp_com:
+ status: "disable"
+ provider: "{{ ism }}"
+
+ - name: "Set smtp com information"
+ inspur.sm.edit_smtp_com:
+ status: "enable"
+ server_ip: "100.2.2.2"
+ email: "inspur@Inspur.com"
+ server_auth: "enable"
+ server_username: "admin"
+ server_password: 1234qwer!@#$"
+ provider: "{{ ism }}"
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_smtp_dest.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_smtp_dest.yml
new file mode 100644
index 000000000..493b3b848
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_smtp_dest.yml
@@ -0,0 +1,25 @@
+- name: Smtp dest test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set smtp dest information"
+ inspur.sm.edit_smtp_dest:
+ id: 1
+ status: "disable"
+ provider: "{{ ism }}"
+
+ - name: "Set smtp dest information"
+ inspur.sm.edit_smtp_dest:
+ id: 1
+ status: "enable"
+ address: "wbs@inspur.com"
+ description: "test"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_snmp.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_snmp.yml
new file mode 100644
index 000000000..f2c6f4e09
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_snmp.yml
@@ -0,0 +1,17 @@
+- name: trap test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set snmp get/set"
+ inspur.sm.edit_snmp:
+ community: "test"
+ v3username: "Inspur"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_snmp_trap.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_snmp_trap.yml
new file mode 100644
index 000000000..fd76e4da1
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_snmp_trap.yml
@@ -0,0 +1,32 @@
+- name: trap test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set snmp trap v2c"
+ inspur.sm.edit_snmp_trap:
+ version: "2c"
+ event_severity: "warning"
+ community: "test"
+ system_name: "Inspur"
+ provider: "{{ ism }}"
+
+ - name: "set snmp trap v3"
+ inspur.sm.edit_snmp_trap:
+ version: "3"
+ event_severity: "all"
+ v3username: "Inspur"
+ engine_id: "1234567890"
+ auth_protocol: "SHA"
+ auth_password: "12345678"
+ priv_protocol: "AES"
+ priv_password: "123454678"
+ trap_port: 162
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_threshold.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_threshold.yml
new file mode 100644
index 000000000..cc7c8104c
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_threshold.yml
@@ -0,0 +1,17 @@
+- name: Threshold test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set threshold information"
+ inspur.sm.edit_threshold:
+ name: "GPU1_Temp"
+ uc: 94
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_uid.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_uid.yml
new file mode 100644
index 000000000..ffd4f2d79
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_uid.yml
@@ -0,0 +1,22 @@
+- name: UID test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set uid"
+ inspur.sm.edit_uid:
+ led: "on"
+ time: 10
+ provider: "{{ ism }}"
+
+ - name: "Set uid"
+ inspur.sm.edit_uid:
+ led: "off"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_user_group.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_user_group.yml
new file mode 100644
index 000000000..d16e2de45
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_user_group.yml
@@ -0,0 +1,17 @@
+- name: set user group test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set user group"
+ inspur.sm.edit_user_group:
+ name: "test"
+ pri: "administrator"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_virtual_media.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_virtual_media.yml
new file mode 100644
index 000000000..4cdd7157d
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_virtual_media.yml
@@ -0,0 +1,27 @@
+- name: Media test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Set local media"
+ inspur.sm.edit_virtual_media:
+ local_media_support: "Enable"
+ provider: "{{ ism }}"
+
+ - name: "Set remote media"
+ inspur.sm.edit_virtual_media:
+ remote_media_support: "Enable"
+ mount_type: 0
+ same_settings: 0
+ mount: "Enable"
+ remote_server_address: "100.2.28.203"
+ remote_source_path: "/data/nfs/server/"
+ remote_share_type: "nfs"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-edit_vlan.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_vlan.yml
new file mode 100644
index 000000000..2b2aa001f
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-edit_vlan.yml
@@ -0,0 +1,25 @@
+- name: vlan test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set vlan information"
+ inspur.sm.edit_vlan:
+ interface_name: "eth0"
+ vlan_status: "disable"
+ provider: "{{ ism }}"
+
+ - name: "set vlan information"
+ inspur.sm.edit_vlan:
+ interface_name: "eth0"
+ vlan_status: "enable"
+ vlan_id: 2
+ vlan_priority: 1
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-event_log_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-event_log_info.yml
new file mode 100644
index 000000000..41be4e490
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-event_log_info.yml
@@ -0,0 +1,26 @@
+- name: eventlog info test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get event log information"
+ inspur.sm.event_log_info:
+ log_time: "2020-06-01T12:30+08:00"
+ provider: "{{ ism }}"
+
+ - name: "get event log information"
+ inspur.sm.event_log_info:
+ count: 30
+ provider: "{{ ism }}"
+
+ - name: "get event log information"
+ inspur.sm.event_log_info:
+ event_file: "/home/wbs/wbs.log"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-event_log_policy_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-event_log_policy_info.yml
new file mode 100644
index 000000000..3b4920a57
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-event_log_policy_info.yml
@@ -0,0 +1,15 @@
+- name: Event log policy test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get event log policy information"
+ inspur.sm.event_log_policy_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-fan_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-fan_info.yml
new file mode 100644
index 000000000..13ffb0db1
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-fan_info.yml
@@ -0,0 +1,15 @@
+- name: fan test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get fan information"
+ inspur.sm.fan_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-fru_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-fru_info.yml
new file mode 100644
index 000000000..7afdb7ce1
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-fru_info.yml
@@ -0,0 +1,15 @@
+- name: fru info test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get fru information"
+ inspur.sm.fru_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-fw_verison_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-fw_verison_info.yml
new file mode 100644
index 000000000..1b401061f
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-fw_verison_info.yml
@@ -0,0 +1,15 @@
+- name: firmware version test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get firmware version information"
+ inspur.sm.fw_version_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-gpu_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-gpu_info.yml
new file mode 100644
index 000000000..2d8391212
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-gpu_info.yml
@@ -0,0 +1,15 @@
+- name: GPU test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get gpu information"
+ inspur.sm.gpu_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-hard_disk_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-hard_disk_info.yml
new file mode 100644
index 000000000..49d8ad0d5
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-hard_disk_info.yml
@@ -0,0 +1,15 @@
+- name: hard disk test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get hard disk information"
+ inspur.sm.hard_disk_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-kvm_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-kvm_info.yml
new file mode 100644
index 000000000..b6e4cbd3f
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-kvm_info.yml
@@ -0,0 +1,15 @@
+- name: KVM test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get KVM information"
+ inspur.sm.kvm_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-ldap_group.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-ldap_group.yml
new file mode 100644
index 000000000..81f916afa
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-ldap_group.yml
@@ -0,0 +1,35 @@
+- name: Ldap group test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Add ldap group information"
+ inspur.sm.ldap_group:
+ state: "present"
+ name: "wbs"
+ base: "cn=manager"
+ pri: "administrator"
+ kvm: "enable"
+ vm: "disable"
+ provider: "{{ ism }}"
+
+ - name: "Set ldap group information"
+ inspur.sm.ldap_group:
+ state: "present"
+ name: "wbs"
+ pri: "user"
+ kvm: "disable"
+ provider: "{{ ism }}"
+
+ - name: "Delete ldap group information"
+ inspur.sm.ldap_group:
+ state: "absent"
+ name: "wbs"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-ldap_group_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-ldap_group_info.yml
new file mode 100644
index 000000000..1096ed243
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-ldap_group_info.yml
@@ -0,0 +1,15 @@
+- name: ldap group test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get ldap group information"
+ inspur.sm.ldap_group_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-ldap_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-ldap_info.yml
new file mode 100644
index 000000000..6fc4c1373
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-ldap_info.yml
@@ -0,0 +1,15 @@
+- name: ldap test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get ldap information"
+ inspur.sm.ldap_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-ldisk_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-ldisk_info.yml
new file mode 100644
index 000000000..a4db07d45
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-ldisk_info.yml
@@ -0,0 +1,15 @@
+- name: ldisk test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get logical disks information"
+ inspur.sm.ldisk_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-log_setting_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-log_setting_info.yml
new file mode 100644
index 000000000..e0d2ea020
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-log_setting_info.yml
@@ -0,0 +1,15 @@
+- name: bmc log setting test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get bmc log setting information"
+ inspur.sm.log_setting_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-media_instance_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-media_instance_info.yml
new file mode 100644
index 000000000..3702b9614
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-media_instance_info.yml
@@ -0,0 +1,15 @@
+- name: Media instance test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get Virtual Media Instance information"
+ inspur.sm.media_instance_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-mem_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-mem_info.yml
new file mode 100644
index 000000000..731247480
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-mem_info.yml
@@ -0,0 +1,15 @@
+- name: memory test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get memory information"
+ inspur.sm.mem_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-ncsi_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-ncsi_info.yml
new file mode 100644
index 000000000..21de01a11
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-ncsi_info.yml
@@ -0,0 +1,15 @@
+- name: ncsi test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set ncsi information"
+ inspur.sm.ncsi_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-network_bond_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-network_bond_info.yml
new file mode 100644
index 000000000..f381d4c87
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-network_bond_info.yml
@@ -0,0 +1,15 @@
+- name: bond test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get network bond information"
+ inspur.sm.network_bond_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-network_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-network_info.yml
new file mode 100644
index 000000000..f43a543a2
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-network_info.yml
@@ -0,0 +1,15 @@
+- name: network test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get network information"
+ inspur.sm.network_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-network_link_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-network_link_info.yml
new file mode 100644
index 000000000..2368e98d2
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-network_link_info.yml
@@ -0,0 +1,15 @@
+- name: link test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get network link information"
+ inspur.sm.network_link_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-ntp_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-ntp_info.yml
new file mode 100644
index 000000000..8020c2141
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-ntp_info.yml
@@ -0,0 +1,15 @@
+- name: NTP test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get ntp information"
+ inspur.sm.ntp_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-onboard_disk_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-onboard_disk_info.yml
new file mode 100644
index 000000000..20489e67f
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-onboard_disk_info.yml
@@ -0,0 +1,15 @@
+- name: Onboard test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get onboard disks information"
+ inspur.sm.onboard_disk_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-pcie_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-pcie_info.yml
new file mode 100644
index 000000000..8d4a2cebc
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-pcie_info.yml
@@ -0,0 +1,15 @@
+- name: PCIE test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get PCIE information"
+ inspur.sm.pcie_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-pdisk_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-pdisk_info.yml
new file mode 100644
index 000000000..a073cd24a
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-pdisk_info.yml
@@ -0,0 +1,15 @@
+- name: pdisk test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get physical disks information"
+ inspur.sm.pdisk_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-power_budget_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-power_budget_info.yml
new file mode 100644
index 000000000..56f03cc3f
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-power_budget_info.yml
@@ -0,0 +1,15 @@
+- name: Power budget test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get power budget information"
+ inspur.sm.power_budget_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-power_consumption_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-power_consumption_info.yml
new file mode 100644
index 000000000..0b86e6b5c
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-power_consumption_info.yml
@@ -0,0 +1,15 @@
+- name: Power consumption test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get power consumption information"
+ inspur.sm.power_consumption_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-power_restore_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-power_restore_info.yml
new file mode 100644
index 000000000..009db01c6
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-power_restore_info.yml
@@ -0,0 +1,15 @@
+- name: power restore test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get power restore information"
+ inspur.sm.power_restore_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-power_status_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-power_status_info.yml
new file mode 100644
index 000000000..b5ada8803
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-power_status_info.yml
@@ -0,0 +1,15 @@
+- name: power status test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get power status information"
+ inspur.sm.power_status_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-preserver_config_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-preserver_config_info.yml
new file mode 100644
index 000000000..495506dfd
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-preserver_config_info.yml
@@ -0,0 +1,15 @@
+- name: preserver test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get preserver config information"
+ inspur.sm.preserver_config_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-psu_config_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-psu_config_info.yml
new file mode 100644
index 000000000..66441e22a
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-psu_config_info.yml
@@ -0,0 +1,15 @@
+- name: psu config test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get psu config information"
+ inspur.sm.psu_config_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-psu_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-psu_info.yml
new file mode 100644
index 000000000..5e8ff567c
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-psu_info.yml
@@ -0,0 +1,15 @@
+- name: psu test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get psu information"
+ inspur.sm.psu_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-psu_peak_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-psu_peak_info.yml
new file mode 100644
index 000000000..5e1aed33b
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-psu_peak_info.yml
@@ -0,0 +1,15 @@
+- name: psu peak test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get psu peak information"
+ inspur.sm.psu_peak_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-raid_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-raid_info.yml
new file mode 100644
index 000000000..9feedcda9
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-raid_info.yml
@@ -0,0 +1,15 @@
+- name: raid test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get raid information"
+ inspur.sm.raid_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-reset_bmc.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-reset_bmc.yml
new file mode 100644
index 000000000..a035b5bd3
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-reset_bmc.yml
@@ -0,0 +1,15 @@
+- name: reset bmc test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "reset bmc"
+ inspur.sm.reset_bmc:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-reset_kvm.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-reset_kvm.yml
new file mode 100644
index 000000000..bf174c7b6
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-reset_kvm.yml
@@ -0,0 +1,15 @@
+- name: reset kvm test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "reset kvm"
+ inspur.sm.reset_kvm:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-restore.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-restore.yml
new file mode 100644
index 000000000..b6e84b6c7
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-restore.yml
@@ -0,0 +1,15 @@
+- name: backup test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: " restore server settings"
+ inspur.sm.restore:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-self_test_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-self_test_info.yml
new file mode 100644
index 000000000..4c01930f2
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-self_test_info.yml
@@ -0,0 +1,15 @@
+- name: self test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get self test information"
+ inspur.sm.self_test_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-sensor_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-sensor_info.yml
new file mode 100644
index 000000000..f9a46ee6b
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-sensor_info.yml
@@ -0,0 +1,15 @@
+- name: sensor test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get sensor information"
+ inspur.sm.sensor_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-server_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-server_info.yml
new file mode 100644
index 000000000..8d1e17bf4
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-server_info.yml
@@ -0,0 +1,15 @@
+- name: server test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get server status information"
+ inspur.sm.server_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-service_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-service_info.yml
new file mode 100644
index 000000000..c42fdf05f
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-service_info.yml
@@ -0,0 +1,15 @@
+- name: service info test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get service information"
+ inspur.sm.service_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-session_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-session_info.yml
new file mode 100644
index 000000000..c0f9c6922
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-session_info.yml
@@ -0,0 +1,15 @@
+- name: Session test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get session information"
+ inspur.sm.session_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-smtp_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-smtp_info.yml
new file mode 100644
index 000000000..ca83c21b9
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-smtp_info.yml
@@ -0,0 +1,15 @@
+- name: smtp test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get smtp information"
+ inspur.sm.smtp_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-snmp_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-snmp_info.yml
new file mode 100644
index 000000000..a55b518f6
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-snmp_info.yml
@@ -0,0 +1,15 @@
+- name: trap test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get snmp get/set information"
+ inspur.sm.snmp_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-snmp_trap_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-snmp_trap_info.yml
new file mode 100644
index 000000000..3f540d69b
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-snmp_trap_info.yml
@@ -0,0 +1,15 @@
+- name: trap test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get snmp trap information"
+ inspur.sm.snmp_trap_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-system_log_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-system_log_info.yml
new file mode 100644
index 000000000..ab6566558
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-system_log_info.yml
@@ -0,0 +1,27 @@
+- name: bmc system log info test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get bmc system log information"
+ inspur.sm.system_log_info:
+ level: "alert"
+ log_time: "2020-06-01T12:30+08:00"
+ provider: "{{ ism }}"
+
+ - name: "get bmc system log information"
+ inspur.sm.system_log_info:
+ count: 30
+ provider: "{{ ism }}"
+
+ - name: "get bmc system log information"
+ inspur.sm.system_log_info:
+ system_file: "/home/wbs/wbs.log"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-temp_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-temp_info.yml
new file mode 100644
index 000000000..4e2ce2ee5
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-temp_info.yml
@@ -0,0 +1,15 @@
+- name: temp test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get temp information"
+ inspur.sm.temp_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-threshold_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-threshold_info.yml
new file mode 100644
index 000000000..7e2538b9e
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-threshold_info.yml
@@ -0,0 +1,15 @@
+- name: Threshold test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get threshold information"
+ inspur.sm.threshold_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-uid_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-uid_info.yml
new file mode 100644
index 000000000..94ffe9386
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-uid_info.yml
@@ -0,0 +1,15 @@
+- name: UID test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get UID information"
+ inspur.sm.uid_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-update_cpld.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-update_cpld.yml
new file mode 100644
index 000000000..84cf0d74d
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-update_cpld.yml
@@ -0,0 +1,22 @@
+- name: CPLD test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get cpld list"
+ inspur.sm.update_cpld:
+ list: True
+ provider: "{{ ism }}"
+
+ - name: "Update cpld"
+ inspur.sm.update_cpld:
+ id: 1
+ file_url: "home/wbs/raw.bin"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-update_fw.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-update_fw.yml
new file mode 100644
index 000000000..11660b36d
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-update_fw.yml
@@ -0,0 +1,24 @@
+- name: update fw test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "update bios"
+ inspur.sm.update_fw:
+ url: "/home/NF5280M6_BIOS_04.12.00_Standard_20210309.hpm"
+ type: "BIOS"
+ provider: "{{ ism }}"
+
+ - name: "update bmc"
+ inspur.sm.update_fw:
+ url: "/home/ISBMC_Whitley_4.12.01_Standard_20210423.hpm"
+ mode: "Auto"
+ type: "BMC"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-user.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-user.yml
new file mode 100644
index 000000000..e0d090306
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-user.yml
@@ -0,0 +1,29 @@
+- name: User test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Add user"
+ inspur.sm.add_user:
+ state: "present"
+ uname: "wbs"
+ upass: "admin"
+ role_id: "Administrator"
+ priv: "kvm,sol"
+ provider: "{{ ism }}"
+
+ - name: "Set user"
+ inspur.sm.add_user:
+ state: "present"
+ uname: "wbs"
+ upass: "12345678"
+ role_id: "user"
+ priv: "kvm,sol"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-user_group.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-user_group.yml
new file mode 100644
index 000000000..24a3f39f2
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-user_group.yml
@@ -0,0 +1,31 @@
+- name: User group test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Add user group"
+ inspur.sm.user_group:
+ state: "present"
+ name: "test"
+ pri: "administrator"
+ provider: "{{ ism }}"
+
+ - name: "Set user group"
+ inspur.sm.user_group:
+ state: "present"
+ name: "test"
+ pri: "user"
+ provider: "{{ ism }}"
+
+ - name: "Delete user group"
+ inspur.sm.user_group:
+ state: "absent"
+ name: "test"
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-user_group_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-user_group_info.yml
new file mode 100644
index 000000000..5efc8484f
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-user_group_info.yml
@@ -0,0 +1,15 @@
+- name: user group test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get user group information"
+ inspur.sm.user_group_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-user_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-user_info.yml
new file mode 100644
index 000000000..2b63244ec
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-user_info.yml
@@ -0,0 +1,15 @@
+- name: user test
+ hosts: ism
+ connection: local
+ gather_facts: F
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: get user information
+ inspur.sm.user_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-virtual_media_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-virtual_media_info.yml
new file mode 100644
index 000000000..cbed172fa
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-virtual_media_info.yml
@@ -0,0 +1,15 @@
+- name: Media test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "Get Virtual Media information"
+ inspur.sm.virtual_media_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/examples-volt_info.yml b/ansible_collections/inspur/sm/playbooks/modules/examples-volt_info.yml
new file mode 100644
index 000000000..fef47deb5
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/examples-volt_info.yml
@@ -0,0 +1,15 @@
+- name: volt test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get volt information"
+ inspur.sm.volt_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/overall/examples-ad_overall.yml b/ansible_collections/inspur/sm/playbooks/modules/overall/examples-ad_overall.yml
new file mode 100644
index 000000000..1444e1833
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/overall/examples-ad_overall.yml
@@ -0,0 +1,77 @@
+- name: ad test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "set active directory information"
+ inspur.sm.edit_ad:
+ enable: "enable"
+ name: "inspur"
+ code: "123456"
+ timeout: 120
+ domain: "inspur.com"
+ addr1: "100.2.2.2"
+ addr2: "100.2.2.3"
+ addr3: "100.2.2.4"
+ provider: "{{ ism }}"
+
+ - name: "get active directory information"
+ inspur.sm.ad_info:
+ provider: "{{ ism }}"
+
+ - name: "get active directory group information"
+ inspur.sm.ad_group_info:
+ provider: "{{ ism }}"
+
+ - name: "add active directory group information"
+ inspur.sm.add_ad_group:
+ name: "wbs"
+ domain: "inspur.com"
+ pri: "administrator"
+ kvm: "enable"
+ vm: "disable"
+ provider: "{{ ism }}"
+
+ - name: "get active directory group information"
+ inspur.sm.ad_group_info:
+ provider: "{{ ism }}"
+
+ - name: "edit active directory group information"
+ inspur.sm.edit_ad_group:
+ id: "1"
+ name: "Inspur"
+ domain: "www.inspur.com"
+ pri: "administrator"
+ kvm: "disable"
+ vm: "disable"
+ provider: "{{ ism }}"
+
+ - name: "get active directory group information"
+ inspur.sm.ad_group_info:
+ provider: "{{ ism }}"
+
+ - name: "delete active directory group information"
+ inspur.sm.del_ad_group:
+ name: "Inspur"
+ provider: "{{ ism }}"
+
+ - name: "get active directory group information"
+ inspur.sm.ad_group_info:
+ provider: "{{ ism }}"
+
+
+ - name: "set active directory information"
+ inspur.sm.edit_ad:
+ enable: "disable"
+ provider: "{{ ism }}"
+
+ - name: "get active directory information"
+ inspur.sm.ad_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/overall/examples-ldap_overall.yml b/ansible_collections/inspur/sm/playbooks/modules/overall/examples-ldap_overall.yml
new file mode 100644
index 000000000..63d663cce
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/overall/examples-ldap_overall.yml
@@ -0,0 +1,81 @@
+- name: ldap test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get ldap information"
+ inspur.sm.ldap_info:
+ provider: "{{ ism }}"
+
+ - name: "set ldap information"
+ inspur.sm.edit_ldap:
+ enable: "enable"
+ encry: "SSL"
+ address: "100.2.2.2"
+ server_port: 389
+ dn: "cn=manager,ou=login,dc=domain,dc=com"
+ code: "123456"
+ base: "cn=manager"
+ attr: "uid"
+ provider: "{{ ism }}"
+
+ - name: "get ldap information"
+ inspur.sm.ldap_info:
+ provider: "{{ ism }}"
+
+ - name: "get ldap group information"
+ inspur.sm.ldap_group_info:
+ provider: "{{ ism }}"
+
+ - name: "add ldap group information"
+ inspur.sm.add_ldap_group:
+ name: "wbs"
+ base: "cn=manager"
+ pri: "administrator"
+ kvm: "enable"
+ vm: "disable"
+ provider: "{{ ism }}"
+
+ - name: "get ldap group information"
+ inspur.sm.ldap_group_info:
+ provider: "{{ ism }}"
+
+ - name: "edit ldap group information"
+ inspur.sm.edit_ldap_group:
+ id: "1"
+ name: "Inspur"
+ base: "cn=manager"
+ pri: "administrator"
+ kvm: "disable"
+ vm: "disable"
+ provider: "{{ ism }}"
+
+ - name: "get ldap group information"
+ inspur.sm.ldap_group_info:
+ provider: "{{ ism }}"
+
+
+ - name: "delete ldap group information"
+ inspur.sm.del_ldap_group:
+ name: "Inspur"
+ provider: "{{ ism }}"
+
+ - name: "get ldap group information"
+ inspur.sm.ldap_group_info:
+ provider: "{{ ism }}"
+
+ - name: "set ldap information"
+ inspur.sm.edit_ldap:
+ enable: "disable"
+ provider: "{{ ism }}"
+
+ - name: "get ldap information"
+ inspur.sm.ldap_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/overall/examples-system_info_overall.yml b/ansible_collections/inspur/sm/playbooks/modules/overall/examples-system_info_overall.yml
new file mode 100644
index 000000000..07bbac5e5
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/overall/examples-system_info_overall.yml
@@ -0,0 +1,65 @@
+- name: Info test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get fru information"
+ inspur.sm.fru_info:
+ provider: "{{ ism }}"
+
+ - name: "get firmware version information"
+ inspur.sm.fw_version_info:
+ provider: "{{ ism }}"
+
+ - name: "get cpu information"
+ inspur.sm.cpu_info:
+ provider: "{{ ism }}"
+
+ - name: "get memory information"
+ inspur.sm.mem_info:
+ provider: "{{ ism }}"
+
+ - name: "get PCIE information"
+ inspur.sm.pcie_info:
+ provider: "{{ ism }}"
+
+ - name: "get adapter information"
+ inspur.sm.adapter_info:
+ provider: "{{ ism }}"
+
+ - name: "get backplane information"
+ inspur.sm.backplane_info:
+ provider: "{{ ism }}"
+
+ - name: "get hard disk information"
+ inspur.sm.hard_disk_info:
+ provider: "{{ ism }}"
+
+
+
+ - name: "get fan information"
+ inspur.sm.fan_info:
+ provider: "{{ ism }}"
+
+ - name: "get psu information"
+ inspur.sm.psu_info:
+ provider: "{{ ism }}"
+
+ - name: "get sensor information"
+ inspur.sm.sensor_info:
+ provider: "{{ ism }}"
+
+ - name: "get temp information"
+ inspur.sm.temp_info:
+ provider: "{{ ism }}"
+
+ - name: "get volt information"
+ inspur.sm.volt_info:
+ provider: "{{ ism }}" \ No newline at end of file
diff --git a/ansible_collections/inspur/sm/playbooks/modules/overall/examples-user_overall.yml b/ansible_collections/inspur/sm/playbooks/modules/overall/examples-user_overall.yml
new file mode 100644
index 000000000..245bd6888
--- /dev/null
+++ b/ansible_collections/inspur/sm/playbooks/modules/overall/examples-user_overall.yml
@@ -0,0 +1,86 @@
+- name: user test
+ hosts: ism
+ connection: local
+ gather_facts: no
+ vars:
+ ism:
+ host: "{{ ansible_ssh_host }}"
+ username: "{{ username }}"
+ password: "{{ password }}"
+
+ tasks:
+
+ - name: "get user group information"
+ inspur.sm.user_group_info:
+ provider: "{{ ism }}"
+
+ - name: "add user group information"
+ inspur.sm.add_user_group:
+ name: "test"
+ pri: "administrator"
+ provider: "{{ ism }}"
+
+ - name: "get user group information"
+ inspur.sm.user_group_info:
+ provider: "{{ ism }}"
+
+ - name: "set user group"
+ inspur.sm.edit_user_group:
+ name: "test"
+ pri: "user"
+ provider: "{{ ism }}"
+
+ - name: "get user group information"
+ inspur.sm.user_group_info:
+ provider: "{{ ism }}"
+
+ - name: get user information
+ inspur.sm.user_info:
+ provider: "{{ ism }}"
+
+ - name: "add user"
+ inspur.sm.add_user:
+ uname: "wbs"
+ upass: "admin"
+ role_id: "test"
+ priv: "kvm,sol"
+ provider: "{{ ism }}"
+
+ - name: get user information
+ inspur.sm.user_info:
+ provider: "{{ ism }}"
+
+ - name: "change user password"
+ inspur.sm.edit_pass_user:
+ uname: "wbs"
+ upass: "admin1"
+ provider: "{{ ism }}"
+
+ - name: "change user privilege"
+ inspur.sm.edit_priv_user:
+ uname: "wbs"
+ role_id: "Administrator"
+ priv: "kvm,sol"
+ provider: "{{ ism }}"
+
+ - name: get user information
+ inspur.sm.user_info:
+ provider: "{{ ism }}"
+
+ - name: "delete user"
+ inspur.sm.del_user:
+ uname: "wbs"
+ provider: "{{ ism }}"
+
+ - name: get user information
+ inspur.sm.user_info:
+ provider: "{{ ism }}"
+
+ - name: "delete user group"
+ inspur.sm.del_user_group:
+ name: "test"
+ provider: "{{ ism }}"
+
+ - name: "get user group information"
+ inspur.sm.user_group_info:
+ provider: "{{ ism }}"