mirror of https://github.com/k3s-io/k3s
Ansible updates for Atomic.
parent
0b14613361
commit
0d4851a4ef
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
- name: Fedora | Remove docker window manager on F20
|
||||
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:
|
||||
- openssl
|
||||
- curl
|
||||
when: not is_atomic
|
||||
|
||||
#- name: Get create ca cert script from Kubernetes
|
||||
# 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
|
||||
when: ansible_distribution == "CentOS"
|
||||
|
||||
|
|
|
@ -6,4 +6,3 @@
|
|||
enablerepo=virt7-docker-common-candidate
|
||||
notify:
|
||||
- restart daemons
|
||||
when: not is_atomic
|
||||
|
|
|
@ -6,4 +6,3 @@
|
|||
enablerepo: "updates-testing"
|
||||
notify:
|
||||
- restart daemons
|
||||
when: not is_atomic
|
||||
|
|
|
@ -5,4 +5,3 @@
|
|||
state: latest
|
||||
notify:
|
||||
- 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
|
||||
selinux: state=permissive policy=targeted
|
||||
when: ansible_selinux and 'Enforcing' in selinux.stdout
|
||||
selinux: state=permissive policy={{ ansible_selinux.type }}
|
||||
when: ansible_selinux is defined and ansible_selinux.status == "enabled"
|
||||
|
||||
- include: packageManagerInstall.yml
|
||||
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
|
||||
when: ansible_distribution == "CentOS"
|
||||
|
||||
|
|
|
@ -6,4 +6,3 @@
|
|||
enablerepo=virt7-docker-common-candidate
|
||||
notify:
|
||||
- restart daemons
|
||||
when: not is_atomic
|
||||
|
|
|
@ -6,4 +6,3 @@
|
|||
enablerepo: "updates-testing"
|
||||
notify:
|
||||
- restart daemons
|
||||
when: not is_atomic
|
||||
|
|
|
@ -5,4 +5,3 @@
|
|||
state: latest
|
||||
notify:
|
||||
- restart daemons
|
||||
when: not is_atomic
|
||||
|
|
Loading…
Reference in New Issue