Browse Source

do not use ansible_lsb variables since they might not be available everywhere

master
Nicolas Massé 8 years ago
parent
commit
d48d521ce0
  1. 2
      common/verify-local-requirements.yml

2
common/verify-local-requirements.yml

@ -23,7 +23,7 @@
- set_fact: - set_fact:
jmespath_missing: '{{ check_jmespath|failed }}' jmespath_missing: '{{ check_jmespath|failed }}'
jinja28_missing: '{{ check_jinja28|failed }}' jinja28_missing: '{{ check_jinja28|failed }}'
on_rhel7: '{{ ansible_distribution == ''RedHat'' and ansible_lsb.major_release|int == 7 }}' on_rhel7: '{{ ansible_distribution == ''RedHat'' and ansible_distribution_major_version|int == 7 }}'
- debug: - debug:
msg: "jmespath is not installed on the machine that runs the playbooks" msg: "jmespath is not installed on the machine that runs the playbooks"

Loading…
Cancel
Save