Disable firewalld for AIO build

Use the same method as kolla-ansible

Change-Id: I01718f822c1af6058fd12c340502c5a89a9d0948
This commit is contained in:
Jonathan Rosser 2019-10-14 16:41:22 +01:00
parent 02d7e68efa
commit 01fc5fad3c

View File

@ -13,6 +13,27 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Check if firewalld is installed
command: rpm -q firewalld
register: firewalld_check
changed_when: false
failed_when: firewalld_check.rc > 1
args:
warn: false
when: ansible_os_family == 'RedHat'
- name: Disable firewalld
become: True
service:
name: "{{ item }}"
enabled: false
state: stopped
with_items:
- firewalld
when:
- ansible_os_family == 'RedHat'
- firewalld_check.rc == 0
- name: Run the systemd-networkd role
include_role:
name: systemd_networkd