mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2025-05-28 01:15:51 +02:00
archlinux setup
This commit is contained in:
parent
b36be7ada7
commit
ecd6e0bd45
26
tasks/setup-Archlinux.yml
Normal file
26
tasks/setup-Archlinux.yml
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
- name: Ensure dependencies are installed.
|
||||
apt:
|
||||
name:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
state: present
|
||||
|
||||
- name: Add Kubernetes apt key.
|
||||
apt_key:
|
||||
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
||||
state: present
|
||||
register: add_repository_key
|
||||
ignore_errors: "{{ kubernetes_apt_ignore_key_error }}"
|
||||
|
||||
- name: Add Kubernetes repository.
|
||||
apt_repository:
|
||||
repo: "{{ kubernetes_apt_repository }}"
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: Add Kubernetes apt preferences file to pin a version.
|
||||
template:
|
||||
src: apt-preferences-kubernetes.j2
|
||||
dest: /etc/apt/preferences.d/kubernetes
|
||||
mode: 0644
|
3
vars/Archlinux.yml
Normal file
3
vars/Archlinux.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
procps_package: procps-ng
|
||||
kubelet_environment_file_path: /etc/default/kubelet
|
Loading…
Reference in New Issue
Block a user