Thanks, I'm reading on lookup now, and that may be the way to go. On Friday, September 16, 2016 at 9:53:25 AM UTC-4, ZillaYT wrote: > > I'm using Ansible's s3 module > <http://docs.ansible.com/ansible/s3_module.html>, and it needs > aws_access_key and aws_secret_key to work in my AWS environment, even > though the page says they're not required. These values are in my > $HOME/.aws/credentials file > > [default] > aws_access_key_id = LAFHALFHLAHFLFAH > aws_secret_access_key = IRUPQORUQPORUQEPORUQPORUQEP > > > I want to get these values to set the AWS_ACCESS_KEY_ID and > AWS_SECRET_ACCESS_KEY environment variables. So how do I write an Ansible > task to... > > > 1. Read the contents of the $HOME/.aws/credentiials > 2. Get the key/value pairs > 3. Set the corresponding environment variables? > > 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/a2f78113-7e9f-4ed3-a16a-197e3380b98b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
