提交 3750ec1a 编写于 作者: C Cleber Rosa

Deployment check: use newer ansible fact syntax

Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 a8e237c2
......@@ -4,5 +4,5 @@
name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
when:
# This should work on both RHEL, CentOS, Scientific Linux, etc
- ansible_distribution_file_variety == "RedHat"
- ansible_distribution_major_version == "7"
- ansible_facts['distribution_file_variety'] == "RedHat"
- ansible_facts['distribution_major_version'] == "7"
......@@ -4,4 +4,4 @@
name: "{{ item }}"
state: latest
with_items: "{{ avocado_python_rpm_packages }}"
when: ansible_distribution_file_variety == "RedHat"
when: ansible_facts['distribution_file_variety'] == "RedHat"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册