how do I not have to enter my vault password?
--
- hosts: all
become: yes
vars_files:
- ~/ansible/vault.yml
vars:
ansible_become_pass: '{{my_become_pass}}'
tasks:
- name: Installs nginx web server
apt:
name: apache2
state: present
update_cache: true
handlers:
- name: start httpd
service:
name: httpd
state: present
I can only get this playbook to work with
ansible-playbook httpd.yml --ask-vault-pass
and entering my vault password
When I run the playbook with
-vault-password-file
I get
[WARNING]: Error in vault password file loading (default): A vault password
must be specified to decrypt data
ERROR! A vault password must be specified to decrypt data
On Sat, Jul 11, 2020 at 8:49 AM Vladimir Botka <[email protected]> wrote:
>
> See
>
> https://askubuntu.com/questions/1172016/can-i-keep-the-annoying-dpkg-lock-error-from-coming-back
>
> https://askubuntu.com/questions/953779/programmatically-disable-apt-unattended-upgrades
>
> --
> Vladimir Botka
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CALmkhkpx1dy63xPAhdVsNpVfZ7VLo%2BTiZpPtzdpnz2UMzPzjiA%40mail.gmail.com.