summaryrefslogtreecommitdiffstats
path: root/ansible_collections/inspur/sm/playbooks/modules/examples-edit_power_status.yml
blob: 5652cc75676fa3a283f4aac235c9fea46bacca6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 }}"