Skip to content

Instantly share code, notes, and snippets.

@willwh
Created March 8, 2019 16:45
Show Gist options
  • Save willwh/18d9db76df3c9da24e4d5bcd600a03ba to your computer and use it in GitHub Desktop.
Save willwh/18d9db76df3c9da24e4d5bcd600a03ba to your computer and use it in GitHub Desktop.
awx-pip-deps
- hosts: all
tasks:
- name: debug hostvars - prints all host variables
debug:
var: hostvars[inventory_hostname]
- name: Ensure that ansible-modules-hashivault is installed
pip:
name: ansible-modules-hashivault
delegate_to: localhost
- name: test vault lookup
debug:
msg: "{{ lookup('hashivault', '/secret/data/ansible/{{ env }}/config', 'data')['current_rancher_master'] }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment