Open NileshChandekar opened 2 months ago
Example:
[bmc]
ilo ansible_host=172.29.xxx.31 ansible_user=ctadmin ansible_password=ctadmin@123
---
- name: Set Server Name using iLOrest
hosts: bmc
gather_facts: no
tasks:
- name: Set Server Name
raw: "ilorest set ServerName={{ server_name }}"
delegate_to: localhost
ansible-playbook -i inventory.ini set_server_name.yml --extra-vars "server_name=NEW_SERVER_NAME"
As and when if wanted to run this playbooks, we need the target machine to be passwordless SSH, right now, only BMC access is there, no package can be installed,
SO how we can run this with inventory.
Somethins like this:-