Use 'inline vaults'
https://docs.ansible.com/ansible/latest/user_guide/vault.html#encrypting-individual-variables-with-ansible-vault

so you can have
...
all:
  hosts:
    hostname:
           # per host
          ansible_password:  !vault |
              $ANSIBLE_VAULT;1.2;AES256;dev
              
30613233633461343837653833666333643061636561303338373661313838333565653635353162
              
3263363434623733343538653462613064333634333464660a663633623939393439316636633863
              
61636237636537333938306331383339353265363239643939666639386530626330633337633833
              
6664656334373166630a363736393262666465663432613932613036303963343263623137386239
              6330
vars:
   # per group
   ansible_password: ...
-- 
----------
Brian Coca

-- 
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/CACVha7frbPsXJU%2BVkaarTGA6_Drs3safQWX5_jFQMEwbyJFR2A%40mail.gmail.com.

Reply via email to