I have this Dell iDRAC management module I'm trying to use.
For some bizarre reason it seems to demand an IP address instead of a respecting the hosts: directive. Here's the example I have been given:
- hosts: idracs
connection: local
name: Check LC Ready Status
gather_facts: False
tasks:
- name: Check LC Ready Status
dellemc_get_lcstatus:
idrac_ip: "{{ idrac_ip }}"
idrac_user: "{{ idrac_user }}"
idrac_pwd: "{{ idrac_pwd }}"
I can't see how to make idrac_ip into a variable. Is /etc/ansible/hosts what I should be using or should I create another(different) inventory object?