Hello,

I'm having an issue with ansible vault and my aws-private.pem ssh key. I 
can't seem to figure out the correct commands to use. 

I have an encrypted .yml file called '/etc/ansible/vars/main.yml'. This 
file was encrypted using ansible vault. 

In this file I have:

#
---

dependencies: []

private_key_file: -----BEGIN RSA PRIVATE KEY-----

*redacted*

-----END RSA PRIVATE KEY-----
#

In the 'ansible.cfg' I have set the private key to 'private_key_file = 
/etc/ansible/vars/main.yml'.

The command I'm using is:

ansible tag_c_app_crm -i /etc/ansible/ec2.py -m ping --ask-vault-pass -u 
ubuntu

When I put in my password it's asking me for a passphrase. I don't use a 
passphrase so I hit return. Then I get a permission denied error. 

I'm able to ping the instances just fine when I point directly to the .pem 
file.  

Is there something I'm missing? 


-- 
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/0f47c23c-89a7-4637-90d7-e75b0610a364%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to