Execution
Date 05 Dec 2025 13:21:24 +0000
Duration 00:00:54.96
Controller np6cc01eb996274
User root
Versions
Ansible 2.18.6
ara 1.7.4 / 1.7.4
Python 3.12.11
Summary
1 Hosts
156 Tasks
156 Results
1 Plays
23 Files
0 Records

File: /home/zuul/src/opendev.org/openstack/openstack-ansible/tests/roles/bootstrap-host/tasks/prepare_networking.yml

---
# Copyright 2015, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

- name: Check if firewalld is installed
  ansible.builtin.command: rpm -q firewalld # noqa: command-instead-of-module
  register: firewalld_check
  changed_when: false
  failed_when: firewalld_check.rc > 1

- name: Disable firewalld
  become: true
  ansible.builtin.service:
    name: "{{ item }}"
    enabled: false
    state: stopped
  with_items:
    - firewalld
  when:
    - firewalld_check.rc == 0