Hello - Is there a way to save a remote property value to a registered variable?
Example: Remote server has file stuff.properties with below sample content: > var1=Hello > var2=World Can Ansible reach out to that file, crack it open, find key "var2", then register value "World"? I dont' want the entire stuff.properties file, but just the value "World" from key "var2". In my head, I imagine there may be some way to setup a regex backrefrence to slurp out "World". Or, perhaps first fetch <http://docs.ansible.com/ansible/fetch_module.html>, then lookup <http://docs.ansible.com/ansible/playbooks_lookups.html>, with a fancy INI plugin <http://docs.ansible.com/ansible/playbooks_lookups.html#the-ini-file-lookup> logic? Thanks -- 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/834728c2-5eb0-47c1-9324-355fa4969f5a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
