FYI: I have tried with_ini -- but it seems that maybe limited to the controlling/initiating server, and/or maybe the with_ini loop feature is not available in Ansible 2.4
On Thursday, January 10, 2019 at 12:00:25 PM UTC-5, Chaz_E wrote: > > QUESTION: How can we load or import an env/ini file that is located in > a file on the Remote/Target server? > > GOAL: > We have an env/ini file on the remote/target server. > We want to read in that file and use the values as variables for the tasks > on that machine. > ( FYI: Our process does not allow for saving these variables in the > Inventory - even though that would be nice. ) > > Here is an example of what our ini/env file looks like: > Path: /devops/properties/Admin.properties > username = FooAdmin > password = bar123XYZ > activate = no > (Basically property format or ini format without any sections) > > ANSIBLE ENVIRONMENT: > We are running playbook jobs from Ansible Tower 2.5.10 > Remote / target machines have Ansible 2.4.2.0 & Python 2.7.5 > ( FYI: We are probably 6months to 1 year away from updating to newer > versions - even though that'd be nice too. ) > > Thanks in advance for any help. > -Chaz > -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fd1fadf1-abf9-4f06-b8f4-09248d8c26c0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
