
As we do not define main interface and default networks for distros, disabling default network services like NetworkManager or netplan will result in loosing connectivity after some time Closes-Bug: #2121055 Change-Id: I753ec17b206295b51589def9cdda336398bc7fe6 Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
32 lines
992 B
YAML
32 lines
992 B
YAML
---
|
|
# 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
|