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.

Reply via email to