mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-13 05:42:46 +01:00
build
This commit is contained in:
@@ -1,7 +1,15 @@
|
|||||||
- name: Install Kubernetes on Ubuntu 24
|
- name: Install Kubernetes on Ubuntu 24
|
||||||
become: "{{ 'no' if inventory_hostname == 'nas.home.lan' else 'yes' }}"
|
become: "{{ 'no' if inventory_hostname == 'nas.home.lan' else 'yes' }}"
|
||||||
block:
|
block:
|
||||||
|
- name: Remove multiple files
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: absent
|
||||||
|
loop:
|
||||||
|
- /etc/apt/sources.list.d/docker.list
|
||||||
|
- /etc/apt/keyrings/docker.gpg
|
||||||
|
- /etc/apt/trusted.gpg.d/containerd.gpg
|
||||||
|
- /etc/apt/trusted.gpg.d/docker.gpg
|
||||||
- name: Update apt cache
|
- name: Update apt cache
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
@@ -16,15 +24,7 @@
|
|||||||
regexp: '.*swap.*'
|
regexp: '.*swap.*'
|
||||||
replace: ''
|
replace: ''
|
||||||
|
|
||||||
- name: Remove multiple files
|
|
||||||
file:
|
|
||||||
path: "{{ item }}"
|
|
||||||
state: absent
|
|
||||||
loop:
|
|
||||||
- /etc/apt/sources.list.d/docker.list
|
|
||||||
- /etc/apt/keyrings/docker.gpg
|
|
||||||
- /etc/apt/trusted.gpg.d/containerd.gpg
|
|
||||||
- /etc/apt/trusted.gpg.d/docker.gpg
|
|
||||||
|
|
||||||
- name: Enable kernel modules
|
- name: Enable kernel modules
|
||||||
copy:
|
copy:
|
||||||
|
|||||||
Reference in New Issue
Block a user