Skip to content

Instantly share code, notes, and snippets.

@alexbrand
Last active May 16, 2017 15:17
Show Gist options
  • Save alexbrand/7ac6ce4b018c60c0386e18bbc09f2a83 to your computer and use it in GitHub Desktop.
Save alexbrand/7ac6ce4b018c60c0386e18bbc09f2a83 to your computer and use it in GitHub Desktop.
Ansible bug: facts are not gathered when using smart fact gathering
[defaults]
gathering = smart
# This file is in roles/b/tasks/main.yaml
---
- command: echo hello!
---
- hosts: all
name: "B"
roles:
- role: b
# This file is in roles/c/tasks/main.yaml
---
- command: echo {{ ansible_os_family }}
---
- hosts: all
name: "C"
roles:
- role: c
---
- include: b.yaml
when: False
- include: c.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment