Advertisement
SturmB

Host Vars Vault Ignored

Aug 31st, 2020 (edited)
1,181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.53 KB | None | 0 0
  1. # inventories/main
  2. [local]
  3. localhost     ansible_connection=local      ansible_user=<nope>
  4. [staging]
  5. skyubuntu     ansible_host=192.168.1.71     ansible_user=<nope>
  6.  
  7. # tasks/common.yml
  8. ---
  9. - name: Ensure Aptitude is installed
  10.   apt:
  11.     name: aptitude
  12.     state: latest
  13.     update_cache: yes
  14.     force_apt_get: yes
  15.   become: yes
  16. []
  17.  
  18.  
  19. # host_vars/localhost/vars.yml
  20. ---
  21. ansible_become_password: "{{ vault_ansible_become_password }}"
  22.  
  23.  
  24. # host_vars/localhost/vault.yml
  25. ---
  26. vault_ansible_become_password: <nope>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement