It will never work in ini file, you can encrypt the whole inventory
though (yaml or ini).
As for the single var, it 'should' work in a YAML inventory, but i
don't think we had it as a specific feature.
It will never work in ini file, you can encrypt the whole inventory
though (yaml or ini).
As for the single var, it 'should' work in a YAML inventory, but i
don't think we had it as a specific feature.
Thx Brian. I deleted my original post (didn’t see a response to it yet, so you probably were responding when I deleted it) due to semi-sensitive information. I will post my general question below for context for people reading this in the future:
Can I utilize the encrypt_string output in my inventory file (tried multiple ways but couldn’t get it to work):
Sample inventory file:
`
[win]
ansible-win.mydomain.com
[win:vars]
ansible_connection=winrm
ansible_user=ansible
ansible_password=“!vault |
$ANSIBLE_VAULT;1.1;AES256
37323038653234633237633336613932313930613332333063356662356636326130626236366536
6138643739653436613930366165393161613932353865660a333939333666353435653433626536
36303430386438616234386639386439343433363962363563636436643562613339626536396332
6364393263646539650a656334373662343438336663666535343130336235616363343332356232
3238”
`
my answer still stands, !vault is a YAMLism, it will never work in an INI file.
Google groups is a mailing list, so when you post, it sends mail to everyone that have subscribed to the list by e-mail.
So deleting a post won't work since the mail i already sent.