问题
ansible_distribution
为什么角色部分中没有诸如 Ansible 的事实?
---
- name: Test
hosts: all
tasks:
- name: debug
debug:
msg: "{{ ansible_distribution }}" <----- Works
roles:
- "{{ ansible_distribution }}/somerole" <---- ERROR! 'ansible_distribution' is undefined
ansible.cfg
[defaults]
error_on_undefined_vars = True