- 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 }}"