mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +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
|
||||
yum: pkg=etcd state=latest
|
||||
action: "{{ ansible_pkg_mgr }}"
|
||||
args:
|
||||
name: etcd
|
||||
state: latest
|
||||
notify:
|
||||
- restart etcd
|
||||
when: not is_atomic
|
||||
|
@ -3,7 +3,10 @@
|
||||
when: ansible_distribution == "Fedora"
|
||||
|
||||
- name: Install kubernetes
|
||||
yum: pkg=kubernetes state=latest
|
||||
action: "{{ ansible_pkg_mgr }}"
|
||||
args:
|
||||
name: kubernetes
|
||||
state: latest
|
||||
notify:
|
||||
- restart daemons
|
||||
when: not is_atomic
|
||||
|
Loading…
Reference in New Issue
Block a user