mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2026-10-23 03:22:03 +02:00
Finally installed ansible-lint and fixed all lint errors.
This commit is contained in:
1 parent
9422f65b5b
commit
338d5eb654
1 file changed
+11
-4
@@ -9,13 +9,20 @@
|
|||||||
- ansible_distribution == 'Ubuntu'
|
- ansible_distribution == 'Ubuntu'
|
||||||
|
|
||||||
- name: Read /proc/cmdline to check for cgroups already running
|
- name: Read /proc/cmdline to check for cgroups already running
|
||||||
shell: cat /proc/cmdline
|
slurp:
|
||||||
register: cmdline
|
src: /proc/cmdline
|
||||||
|
register: slurped_cmdline
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == 'Ubuntu'
|
- ansible_distribution == 'Ubuntu'
|
||||||
|
|
||||||
- name: Reboot to enable cgroups if not already running
|
- name: Decode slurped command line
|
||||||
|
set_fact:
|
||||||
|
cmdline: "{{ slurped_cmdline.content | b64decode }}"
|
||||||
|
when:
|
||||||
|
- ansible_distribution == 'Ubuntu'
|
||||||
|
|
||||||
|
- name: Reboot to enable cgroups if not already enabled
|
||||||
reboot:
|
reboot:
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == 'Ubuntu'
|
- ansible_distribution == 'Ubuntu'
|
||||||
- '"cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory" not in cmdline.stdout'
|
- '"cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory" not in cmdline'
|
||||||
Reference in new issue
Block a user