1f3fe0cb45
Add openvswitch gate issue with systemd 237-3ubuntu10.43 to multinode also. Added code from [0]. Additionally, made changes to support 1.18.9 version of kubeadm. [0] https://review.opendev.org/c/openstack/openstack-helm-infra/+/763619 Change-Id: I2681feb1029e5535f3f278513e8aece821c715f1
70 lines
2.1 KiB
YAML
70 lines
2.1 KiB
YAML
# 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: ensuring SELinux is disabled on centos & fedora
|
|
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' or ansible_distribution == 'Fedora'
|
|
become: true
|
|
become_user: root
|
|
command: setenforce 0
|
|
ignore_errors: True
|
|
|
|
# NOTE(portdirect): See https://ask.openstack.org/en/question/110437/importerror-cannot-import-name-unrewindablebodyerror/
|
|
- name: fix docker removal issue with ansible's docker_container on centos
|
|
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
|
|
block:
|
|
- name: remove requests and urllib3 distro packages to fix docker removal issue with ansible's docker_container on centos
|
|
include_role:
|
|
name: deploy-package
|
|
tasks_from: dist
|
|
vars:
|
|
state: absent
|
|
packages:
|
|
rpm:
|
|
- python-urllib3
|
|
- python-requests
|
|
- name: restore requests and urllib3 distro packages to fix docker removal issue with ansible's docker_container on centos
|
|
include_role:
|
|
name: deploy-package
|
|
tasks_from: dist
|
|
vars:
|
|
state: present
|
|
packages:
|
|
rpm:
|
|
- python-urllib3
|
|
- python-requests
|
|
|
|
- name: install additional packages
|
|
include_role:
|
|
name: deploy-package
|
|
tasks_from: dist
|
|
vars:
|
|
state: present
|
|
packages:
|
|
deb:
|
|
- conntrack
|
|
- bc
|
|
- nmap
|
|
rpm:
|
|
- conntrack-tools
|
|
- bc
|
|
- nmap
|
|
|
|
- name: Ensure docker python packages deployed
|
|
include_role:
|
|
name: deploy-package
|
|
tasks_from: pip
|
|
vars:
|
|
packages:
|
|
- docker
|
|
...
|