I know I can encrypt my var files and get this to work, but I am just
playing around. Is it possible to take the output from the encrypt_string
and use it in an inventory file? I have been trying varying syntax, but
can't get it to work. I believe I just have a syntax issue:
# ansible-vault encrypt_string gomer --ask-vault-pass
New Vault password:
Confirm New Vault password:
!vault |
$ANSIBLE_VAULT;1.1;AES256
62383564353563353933343161666435306464393165353337363035666363363663396336656238
3130313632386136333631643964616330336364623935620a333562363839353763336632613230
38383663313832396339646635383665613230643530373639646361306537613533306565363965
3639363061326263630a626537383662646430323866383633343630333561306164396366313836
6234
Encryption successful
Inventory File:
win:
hosts:
ansible-win.nspnet.net
vars:
ansible_connection: winrm
ansible_user: ansible
ansible_password: >
!vault |
$ANSIBLE_VAULT;1.1;AES256
30653431356634633165316664383264313636623136623831663566303436613834366536663333
6236666435613164306162346261666339353230356365360a383661333263656465646533386561
33393937323838646264396166333266633062633330386630643161343365313533306135663332
6438373531326334310a316232386532313563363531303833373964363130633735636631396364
6662
also tried:
[win]
ansible-win.nspnet.net
[win:vars]
ansible_connection=winrm
ansible_user=ansible
ansible_password=!vault |
$ANSIBLE_VAULT;1.1;AES256
30653431356634633165316664383264313636623136623831663566303436613834366536663333
6236666435613164306162346261666339353230356365360a383661333263656465646533386561
33393937323838646264396166333266633062633330386630643161343365313533306135663332
6438373531326334310a316232386532313563363531303833373964363130633735636631396364
6662
--
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/16db8662-8b06-42db-a57f-9f65349ebdf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.