Modernize Ansible playbooks: replace deprecated syntax (include: -> include_tasks:, with_items -> loop), use ansible.builtin modules, organize variables (defaults/main.yml), standardize tags, add prerequisites assertions and meta/main.yml
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
tags: grub
|
||||
|
||||
- name: Configuration grub - Suppression de rhgb
|
||||
shell: grubby --update-kernel=ALL --remove-args=rhgb
|
||||
ansible.builtin.shell: grubby --update-kernel=ALL --remove-args=rhgb
|
||||
when: grep_count.stdout != '0' and ansible_distribution_major_version >= '7'
|
||||
tags: grub
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
tags: grub
|
||||
|
||||
- name: Configuration grub - Suppression de quiet
|
||||
shell: grubby --update-kernel=ALL --remove-args=quiet
|
||||
ansible.builtin.shell: grubby --update-kernel=ALL --remove-args=quiet
|
||||
when: grep_count.stdout != '0' and ansible_distribution_major_version >= '7'
|
||||
tags: grub
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
tags: grub
|
||||
|
||||
- name: Configuration grub - Désactivation de Transparent Hugepages
|
||||
shell: grubby --update-kernel=ALL --args=transparent_hugepage=never
|
||||
ansible.builtin.shell: grubby --update-kernel=ALL --args=transparent_hugepage=never
|
||||
when: grep_count.stdout == '0' and ansible_distribution_major_version >= '7'
|
||||
tags: grub
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
tags: grub
|
||||
|
||||
- name: Configuration grub - Désactivation de numa=off
|
||||
shell: grubby --update-kernel=ALL --args=numa=off
|
||||
ansible.builtin.shell: grubby --update-kernel=ALL --args=numa=off
|
||||
when: grep_count.stdout == '0' and ansible_distribution_major_version >= '7'
|
||||
tags: grub
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
tags: grub
|
||||
|
||||
- name: Configuration grub - elevator=deadline
|
||||
shell: grubby --update-kernel=ALL --args=elevator=deadline
|
||||
ansible.builtin.shell: grubby --update-kernel=ALL --args=elevator=deadline
|
||||
when: grep_count.stdout == '0' and ansible_distribution_major_version >= '7'
|
||||
tags: grub
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
tags: grub
|
||||
|
||||
- name: Configuration grub - vga=791
|
||||
shell: grubby --update-kernel=ALL --args=vga=791
|
||||
ansible.builtin.shell: grubby --update-kernel=ALL --args=vga=791
|
||||
when: grep_count.stdout == '0' and ansible_distribution_major_version >= '7'
|
||||
tags: grub
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
# tags: grub
|
||||
#
|
||||
# - name: Configuration grub - GRUB_ENABLE_BLSCFG=true
|
||||
# shell: grubby --update-kernel=ALL --args=GRUB_ENABLE_BLSCFG=true
|
||||
# ansible.builtin.shell: grubby --update-kernel=ALL --args=GRUB_ENABLE_BLSCFG=true
|
||||
# when: grep_count.stdout == '0' and ansible_distribution_major_version >= '7'
|
||||
# tags: grub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user