Merge "iptables save fix for centos 7"

This commit is contained in:
Zuul 2019-08-13 15:31:50 +00:00 committed by Gerrit Code Review
commit 6811c82290

View File

@ -28,11 +28,10 @@
ignore_errors: yes ignore_errors: yes
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- name: save iptables rules (CentOS & RHEL) - name: save iptables rules (CentOS)
command: service iptables save shell: iptables-save > /etc/sysconfig/iptables
args: when:
warn: False # since we use save service module doesn't apply - ansible_distribution == 'CentOS'
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
- name: Create certs directory - name: Create certs directory
file: path=/etc/octavia/certs/ state=directory file: path=/etc/octavia/certs/ state=directory