Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F256664
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/ansible/grub.yml b/ansible/grub.yml
index bbb2ed65..fcc59faf 100644
--- a/ansible/grub.yml
+++ b/ansible/grub.yml
@@ -1,22 +1,26 @@
---
- name: Check if cgroupv1 is configured
shell: grep -c 'systemd.unified_cgroup_hierarchy=0' /proc/cmdline
register: cgroup_status
ignore_errors: true
+- name: Install grubby
+ package: name=grubby state=installed
+ when: cgroup_status.stdout == "0"
+
- name: Disable cgroupv2
shell: grubby --update-kernel=ALL --args=\"systemd.unified_cgroup_hierarchy=0\"
when: cgroup_status.stdout == "0"
- name: reboot
shell: sleep 2 && shutdown -r now "Ansible updates triggered"
async: 1
poll: 0
ignore_errors: true
when: cgroup_status.stdout == "0"
- name: waiting for server to come back
local_action: wait_for host={{ansible_fqdn}} state=started timeout=600 delay=15
when: cgroup_status.stdout == "0"
diff --git a/ansible/packages.yml b/ansible/packages.yml
index 580691c8..ad9eb053 100644
--- a/ansible/packages.yml
+++ b/ansible/packages.yml
@@ -1,11 +1,10 @@
---
- name: Install list of required packages
package: name={{ item }} state=installed
with_items:
- - grubby
- git
- tig
- tmux
- docker
- docker-compose
- certbot
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Jun 9, 2:59 AM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
196736
Default Alt Text
(1 KB)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment