Automation

 View Only
last person joined: 23 days ago 

Ask questions and share experiences about Apstra, Paragon, and all things network automation.
  • 1.  Question on Ansible Vault

     
    Posted 02-05-2025 12:02

    Hi everyone.

    If I have a variable file that is encrypted via Ansible Vault, I have to ask Ansible to prompt me to enter the  Vault password while running the Ansible playbook as follows:

    ansible-playbook my_pb.yml --ask-vault-pass      

    If I have to enter the password manually, how do I set up a cron job that runs this Ansible playbook without my intervention?

    Thanks,

    Deepak



  • 2.  RE: Question on Ansible Vault
    Best Answer

     
    Posted 02-05-2025 18:11

    use --vault-password-file instead.

    https://docs.ansible.com/ansible/latest/vault_guide/vault_managing_passwords.html




  • 3.  RE: Question on Ansible Vault

     
    Posted 29 days ago

    Thanks asharp!