mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Ansible updates for Atomic.
This commit is contained in:
parent
0b14613361
commit
0d4851a4ef
@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: Fedora | Remove docker window manager on F20
|
- name: Fedora | Remove docker window manager on F20
|
||||||
yum: pkg=docker state=absent
|
yum: pkg=docker state=absent
|
||||||
when: not is_atomic and ansible_distribution_major_version == "20"
|
when: ansible_distribution_major_version == "20"
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- openssl
|
- openssl
|
||||||
- curl
|
- curl
|
||||||
|
when: not is_atomic
|
||||||
|
|
||||||
#- name: Get create ca cert script from Kubernetes
|
#- name: Get create ca cert script from Kubernetes
|
||||||
# get_url:
|
# get_url:
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
- name: Set fact for Atomic Host package install
|
||||||
|
set_fact:
|
||||||
|
did_install: true
|
||||||
|
when: is_atomic
|
||||||
|
|
||||||
- include: pkgMgrInstallers/centos-install.yml
|
- include: pkgMgrInstallers/centos-install.yml
|
||||||
when: ansible_distribution == "CentOS"
|
when: ansible_distribution == "CentOS"
|
||||||
|
|
||||||
|
@ -6,4 +6,3 @@
|
|||||||
enablerepo=virt7-docker-common-candidate
|
enablerepo=virt7-docker-common-candidate
|
||||||
notify:
|
notify:
|
||||||
- restart daemons
|
- restart daemons
|
||||||
when: not is_atomic
|
|
||||||
|
@ -6,4 +6,3 @@
|
|||||||
enablerepo: "updates-testing"
|
enablerepo: "updates-testing"
|
||||||
notify:
|
notify:
|
||||||
- restart daemons
|
- restart daemons
|
||||||
when: not is_atomic
|
|
||||||
|
@ -5,4 +5,3 @@
|
|||||||
state: latest
|
state: latest
|
||||||
notify:
|
notify:
|
||||||
- restart daemons
|
- restart daemons
|
||||||
when: not is_atomic
|
|
||||||
|
@ -1,13 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Check if selinux enforcing
|
|
||||||
command: getenforce
|
|
||||||
register: selinux
|
|
||||||
changed_when: false
|
|
||||||
when: ansible_selinux
|
|
||||||
|
|
||||||
- name: Set selinux permissive because tokens and selinux don't work together
|
- name: Set selinux permissive because tokens and selinux don't work together
|
||||||
selinux: state=permissive policy=targeted
|
selinux: state=permissive policy={{ ansible_selinux.type }}
|
||||||
when: ansible_selinux and 'Enforcing' in selinux.stdout
|
when: ansible_selinux is defined and ansible_selinux.status == "enabled"
|
||||||
|
|
||||||
- include: packageManagerInstall.yml
|
- include: packageManagerInstall.yml
|
||||||
when: source_type == "packageManager"
|
when: source_type == "packageManager"
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
- name: Set fact for Atomic Host package install
|
||||||
|
set_fact:
|
||||||
|
did_install: true
|
||||||
|
when: is_atomic
|
||||||
|
|
||||||
- include: pkgMgrInstallers/centos-install.yml
|
- include: pkgMgrInstallers/centos-install.yml
|
||||||
when: ansible_distribution == "CentOS"
|
when: ansible_distribution == "CentOS"
|
||||||
|
|
||||||
|
@ -6,4 +6,3 @@
|
|||||||
enablerepo=virt7-docker-common-candidate
|
enablerepo=virt7-docker-common-candidate
|
||||||
notify:
|
notify:
|
||||||
- restart daemons
|
- restart daemons
|
||||||
when: not is_atomic
|
|
||||||
|
@ -6,4 +6,3 @@
|
|||||||
enablerepo: "updates-testing"
|
enablerepo: "updates-testing"
|
||||||
notify:
|
notify:
|
||||||
- restart daemons
|
- restart daemons
|
||||||
when: not is_atomic
|
|
||||||
|
@ -5,4 +5,3 @@
|
|||||||
state: latest
|
state: latest
|
||||||
notify:
|
notify:
|
||||||
- restart daemons
|
- restart daemons
|
||||||
when: not is_atomic
|
|
||||||
|
Loading…
Reference in New Issue
Block a user