Skip to content

Instantly share code, notes, and snippets.

@JakeDEvans
Last active June 8, 2016 16:40
Show Gist options
  • Save JakeDEvans/00aaaab051a9c234de7f32da1bb2b8c2 to your computer and use it in GitHub Desktop.
Save JakeDEvans/00aaaab051a9c234de7f32da1bb2b8c2 to your computer and use it in GitHub Desktop.
---
- hosts: backend
become: yes
become_method: sudo
tasks:
- name: Facts
setup:
- hosts: frontend
become: yes
become_method: sudo
pre_tasks:
- name: Check Facts
shell: echo " {{ hostvars[item]['ansible_hostname'] }}"
with_items: "{{groups['backend']}}"
roles:
- reverse_proxy
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment