Update Ansible code
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
430fdb5403
commit
a805106462
2 changed files with 14 additions and 13 deletions
|
|
@ -6,11 +6,13 @@ galaxy_info:
|
||||||
galaxy_tags: []
|
galaxy_tags: []
|
||||||
license: GPL2
|
license: GPL2
|
||||||
platforms:
|
platforms:
|
||||||
- name: CentOS
|
- name: CentOS
|
||||||
version:
|
version:
|
||||||
- 7
|
- 7
|
||||||
- 8
|
- 8
|
||||||
- name: RedHat
|
- 9
|
||||||
version:
|
- name: RedHat
|
||||||
- 7
|
version:
|
||||||
- 8
|
- 7
|
||||||
|
- 8
|
||||||
|
- 9
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Install script update-grub
|
- name: Install script update-grub
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: files/usr/local/sbin/update-grub
|
src: files/usr/local/sbin/update-grub
|
||||||
dest: /usr/local/sbin/update-grub
|
dest: /usr/local/sbin/update-grub
|
||||||
owner: root
|
owner: root
|
||||||
|
|
@ -8,12 +8,12 @@
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when: ansible_architecture == "x86_64" or ansible_architecture == "i386"
|
when: ansible_architecture == "x86_64" or ansible_architecture == "i386"
|
||||||
- name: Retreive stat of /etc/dracut.conf.d/02-rescue.conf file
|
- name: Retreive stat of /etc/dracut.conf.d/02-rescue.conf file
|
||||||
stat:
|
ansible.builtin.stat:
|
||||||
path: /etc/dracut.conf.d/02-rescue.conf
|
path: /etc/dracut.conf.d/02-rescue.conf
|
||||||
register: st
|
register: st
|
||||||
check_mode: false
|
check_mode: false
|
||||||
- name: Copy dracut's rescue config file
|
- name: Copy dracut's rescue config file
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: /usr/lib/dracut/dracut.conf.d/02-rescue.conf
|
src: /usr/lib/dracut/dracut.conf.d/02-rescue.conf
|
||||||
dest: /etc/dracut.conf.d/02-rescue.conf
|
dest: /etc/dracut.conf.d/02-rescue.conf
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
|
|
@ -22,10 +22,9 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: not st.stat.exists
|
when: not st.stat.exists
|
||||||
- name: Disable dracut's recue img
|
- name: Disable dracut's recue img
|
||||||
lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
dest: /etc/dracut.conf.d/02-rescue.conf
|
dest: /etc/dracut.conf.d/02-rescue.conf
|
||||||
regexp: "^dracut_rescue_image"
|
regexp: "^dracut_rescue_image"
|
||||||
line: 'dracut_rescue_image="no"'
|
line: 'dracut_rescue_image="no"'
|
||||||
state: present
|
state: present
|
||||||
# Nécessite un handler pour regénérer l'initramfs
|
# Nécessite un handler pour regénérer l'initramfs
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue