mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-10-28 05:07:06 +01:00
build
This commit is contained in:
1 parent
135bae97e1
commit
1940bba333
1 file changed
+11
@@ -1,6 +1,17 @@
|
|||||||
- name: Install kubernetes on Rocky 9
|
- name: Install kubernetes on Rocky 9
|
||||||
become: "{{ 'no' if inventory_hostname == 'nas.home.lan' else 'yes' }}"
|
become: "{{ 'no' if inventory_hostname == 'nas.home.lan' else 'yes' }}"
|
||||||
block:
|
block:
|
||||||
|
- name: Get root mount
|
||||||
|
set_fact:
|
||||||
|
root_mount: "{{ ansible_mounts | selectattr('mount', 'equalto', '/') | first }}"
|
||||||
|
|
||||||
|
- name: Fail if total size < 10GB
|
||||||
|
fail:
|
||||||
|
msg: >
|
||||||
|
Root filesystem is too small!
|
||||||
|
Total: {{ (root_mount.size_total / 1024 / 1024 / 1024) | round(2) }} GB
|
||||||
|
when: root_mount.size_total < (10 * 1024 * 1024 * 1024)
|
||||||
|
|
||||||
|
|
||||||
- name: Disable SELinux
|
- name: Disable SELinux
|
||||||
ansible.posix.selinux:
|
ansible.posix.selinux:
|
||||||
|
|||||||
Reference in new issue
Block a user