Questions tagged «ansible-vault»

1
覆盖ansible配置中的选项
在 我以前的问题 ,我发现我可以把选项放到本地 ansible.cfg 文件。但我可以覆盖它们吗? 我有一个 ansible.cfg 包含的文件 [defaults] vault_password_file = /home/hymie/ansible/foo 我可以自动使用此文件: $ echo "hi there" | ansible-vault encrypt_string Reading plaintext input from stdin. (ctrl-d to end input) !vault | $ANSIBLE_VAULT;1.1;AES256 64386133613865366565336365333166623538613239636464303931646330323061376239363639 3136376163613132613130306630626365643133366664310a353030303434346336396233616363 62323464313737663135303636646264373737393930326132386231363561653865646436313439 3231353132643364340a316431626332626633646135613064353133633038356434323537326633 3035 Encryption successful 但现在,我无法使用/选择其他密码: $ echo "hi there" | ansible-vault encrypt_string --ask-vault-pass New Vault …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.