Hi all! Curious how I could do this using the yum module, or should I just run this command as shell or “command”?
WAZUH_MANAGER="10.0.0.2" yum install wazuh-agent
So essentially setting this variable and applying it to this install.
Hi all! Curious how I could do this using the yum module, or should I just run this command as shell or “command”?
WAZUH_MANAGER="10.0.0.2" yum install wazuh-agent
So essentially setting this variable and applying it to this install.
Try the yum module and a custom environment variable:
https://docs.ansible.com/ansible/latest/user_guide/playbooks_environment.html#setting-the-remote-environment-in-a-task
Hi all,
I tried this:
And this was my result:
TASK [Install Wazuh-agent] ****************************************************************************************
[WARNING]: could not parse environment value, skipping: [“WAZUH_MANAGER=‘10.0.0.2’”]
changed: [zli-lx]
Hi all,
I tried this:
- name: Install Wazuh-agent
yum:
name: wazuh-agent
state: latest
environment: "WAZUH_MANAGER='10.0.0.2'"
Chris, the environment task parameter expects a dict and not a string.
Please try:
environment:
WAZUH_MANAGER: '10.0.0.2'
Regards
Racke