Browse Source

Fix bootstrap ansible_fact

Missed the distribution_major_version switch.

Change-Id: I51b71a2c74f954e9a50fb7008f460aee6a74734f
changes/64/777164/1
Alex Schultz 1 year ago
parent
commit
20a1a4c39e
  1. 2
      tripleo_ansible/roles/tripleo_bootstrap/tasks/main.yml

2
tripleo_ansible/roles/tripleo_bootstrap/tasks/main.yml

@ -110,7 +110,7 @@
- name: Create empty ruleset in /etc/sysconfig/iptables and /etc/sysconfig/ip6tables
become: true
ignore_errors: "{{ (((ansible_facts['os_family'] | lower) ~ '-' ~ ansible_distribution_major_version) == 'redhat-7') | bool }}"
ignore_errors: "{{ (((ansible_facts['os_family'] | lower) ~ '-' ~ ansible_facts['distribution_major_version']) == 'redhat-7') | bool }}"
copy:
dest: "{{ item }}"
content: "# empty ruleset created by deployed-server bootstrap"

Loading…
Cancel
Save