mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Use {{ ansible_pkg_mgr }} instead of yum
This should make things work on systems with dnf and even on systems which use apt!
This commit is contained in:
parent
3af9346596
commit
b0b3b03045
@ -1,6 +1,9 @@
|
|||||||
---
|
---
|
||||||
- name: Install etcd
|
- name: Install etcd
|
||||||
yum: pkg=etcd state=latest
|
action: "{{ ansible_pkg_mgr }}"
|
||||||
|
args:
|
||||||
|
name: etcd
|
||||||
|
state: latest
|
||||||
notify:
|
notify:
|
||||||
- restart etcd
|
- restart etcd
|
||||||
when: not is_atomic
|
when: not is_atomic
|
||||||
|
@ -3,7 +3,10 @@
|
|||||||
when: ansible_distribution == "Fedora"
|
when: ansible_distribution == "Fedora"
|
||||||
|
|
||||||
- name: Install kubernetes
|
- name: Install kubernetes
|
||||||
yum: pkg=kubernetes state=latest
|
action: "{{ ansible_pkg_mgr }}"
|
||||||
|
args:
|
||||||
|
name: kubernetes
|
||||||
|
state: latest
|
||||||
notify:
|
notify:
|
||||||
- restart daemons
|
- restart daemons
|
||||||
when: not is_atomic
|
when: not is_atomic
|
||||||
|
Loading…
Reference in New Issue
Block a user