Externalize role
This commit is contained in:
commit
e94fcdc2df
2 changed files with 43 additions and 0 deletions
13
tasks/main.yml
Normal file
13
tasks/main.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
- name: Install script update-grub
|
||||
copy: src=files/usr/local/sbin/update-grub dest=/usr/local/sbin/update-grub owner=root group=root mode=0755
|
||||
when: ansible_architecture == "x86_64" or ansible_architecture == "i386"
|
||||
- stat: path=/etc/dracut.conf.d/02-rescue.conf
|
||||
register: st
|
||||
- name: Copy dracut's rescue config file
|
||||
copy: src=/usr/lib/dracut/dracut.conf.d/02-rescue.conf dest=/etc/dracut.conf.d/02-rescue.conf remote_src=yes
|
||||
when: not st.stat.exists
|
||||
- name: Disable dracut's recue img
|
||||
lineinfile: dest=/etc/dracut.conf.d/02-rescue.conf regexp="^dracut_rescue_image" line="dracut_rescue_image=no" state=present
|
||||
# Nécessite un handler pour regénérer l'initramfs
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue