Hi all,
I tried this:
- name: Install Wazuh-agent
yum:
name: wazuh-agent
state: latest
environment: "WAZUH_MANAGER='10.0.0.2'"
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]
On Fri, Nov 20, 2020 at 10:11 AM Dick Visser <[email protected]> wrote:
> 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
>
> On Fri, 20 Nov 2020 at 17:55, 'Chris Bidwell - NOAA Federal' via
> Ansible Project <[email protected]> wrote:
> >
> > 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.
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Ansible Project" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAHKi8Cjycnrfo-S5gMW49BdBqvbkAa4wQvbZNUvRVqJ7U9DUiA%40mail.gmail.com
> .
>
>
>
> --
> Dick Visser
> Trust & Identity Service Operations Manager
> GÉANT
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwNkvKXBmL6NzdZUL_LPuOuL2W9cSmBAQmmuLHe%2B%3D0dXyg%40mail.gmail.com
> .
>
--
Chris Bidwell, CISSP
Space Weather Prediction Center
National Oceanic Atmospheric Administration
email: c <[email protected]>[email protected]
office: 303-497-3204
mobile: 720-496-3126
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAHKi8Chx3XHMJGkk-zJQjJmhSHbJzS8e%3DrdcKF%2B4_eZLBFMJAQ%40mail.gmail.com.