use proper syntax for expanding variables

pull/468/head
Ben England 2016-01-08 08:54:00 -05:00
parent 1664316d4d
commit 3ba824ffd8
1 changed files with 3 additions and 3 deletions

View File

@ -2,17 +2,17 @@
- name: fail on unsupported system
fail:
msg: "System not supported {{ ansible_system }}"
when: "ansible_system not in ['Linux']"
when: "'{{ ansible_system }}' not in ['Linux']"
- name: fail on unsupported architecture
fail:
msg: "Architecture not supported {{ ansible_architecture }}"
when: "ansible_architecture not in ['x86_64']"
when: "'{{ ansible_architecture }}' not in ['x86_64']"
- name: fail on unsupported distribution
fail:
msg: "Distribution not supported {{ ansible_os_family }}"
when: "ansible_os_family not in ['Debian', 'RedHat']"
when: "'{{ ansible_os_family }}' not in ['Debian', 'RedHat']"
- name: fail on unsupported distribution for red hat storage
fail: