Skip to content

Instantly share code, notes, and snippets.

@pertoft
Created March 19, 2020 08:42
Show Gist options
  • Save pertoft/dd451def300ce9d747fd704719f5b6f0 to your computer and use it in GitHub Desktop.
Save pertoft/dd451def300ce9d747fd704719f5b6f0 to your computer and use it in GitHub Desktop.
Ansible Development
1) Get ANSIBLE_MODULE_ARGS:
ANSIBLE_KEEP_REMOTE_FILES=1 ansible-playbook playbooks/jira-cmdb-get.yml --vault-password-file=~/.vault_pass -vvv
2) cd /Users/pto/.ansible/tmp/ansible-tmp-1584606942.395108-45581463648279/
3)
python AnsiballZ_jira.py explode
Module expanded into:
/Users/pto/.ansible/tmp/ansible-tmp-1584606942.395108-45581463648279/debug_dir
pto:ansible-tmp-1584606942.395108-45581463648279 pto$
4) Enable ansibel debug (clone git first)
cd ansible
. venv/bin/activate
. hacking/env-setup
5) Test
python -m ansible.modules.web_infrastructure.jira ./jira.json | python -m json.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment