---
# file: roles/common/handlers/cimc.yaml
- name: Boot from network
imc_rest:
hostname: '{{ inventory_cimc_hostname }}'
username: '{{ inventory_cimc_username }}'
password: '{{ inventory_cimc_password }}'
validate_certs: no
content: |
delegate_to: localhost
tags: boot-network
- name: Boot from storage
imc_rest:
hostname: '{{ inventory_cimc_hostname }}'
username: '{{ inventory_cimc_username }}'
password: '{{ inventory_cimc_password }}'
validate_certs: no
content: |
delegate_to: localhost
tags: boot-storage
- name: Power up server
imc_rest:
hostname: '{{ inventory_cimc_hostname }}'
username: '{{ inventory_cimc_username }}'
password: '{{ inventory_cimc_password }}'
validate_certs: no
content: |
delegate_to: localhost
tags: power-up
- name: Power down server
imc_rest:
hostname: '{{ inventory_cimc_hostname }}'
username: '{{ inventory_cimc_username }}'
password: '{{ inventory_cimc_password }}'
validate_certs: no
content: |
delegate_to: localhost
tags: power-down
- name: Power cycle server
imc_rest:
hostname: '{{ inventory_cimc_hostname }}'
username: '{{ inventory_cimc_username }}'
password: '{{ inventory_cimc_password }}'
validate_certs: no
content: |
delegate_to: localhost
tags: power-cycle