Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 422 Bytes

helpful_snippets.md

File metadata and controls

16 lines (12 loc) · 422 Bytes

helpful snippets

run docker for local debug

docker run -v "$(pwd):/workspace" -w /workspace -it  cytopia/ansible

and inside the container run

   export "ANSIBLE_KEY=<snowman password>"
   export "ANSIBLE_CONFIG=etc/ansible/ansible.cfg"
   apk add --update --no-cache openssh sshpass
   ansible-playbook -vvv -i hostfile playbook.yml -e ansible_ssh_pass='{{ lookup("env", "ANSIBLE_KEY") }}'