mirror of
https://github.com/pigmonkey/spark.git
synced 2026-07-22 07:32:39 +00:00
reformat yml
This commit is contained in:
parent
e3947f7005
commit
6abfc77f4d
1 changed files with 12 additions and 7 deletions
|
|
@ -1,19 +1,24 @@
|
|||
---
|
||||
- name: Copy pacman configuration file
|
||||
copy: src=pacman.conf dest=/etc/pacman.conf
|
||||
copy:
|
||||
src: pacman.conf
|
||||
dest: /etc/pacman.conf
|
||||
|
||||
- name: Refresh pacman mirrors
|
||||
pacman: update_cache=yes
|
||||
pacman:
|
||||
update_cache: yes
|
||||
|
||||
- name: Set the hostname
|
||||
hostname: name={{ hostname }}
|
||||
hostname:
|
||||
name: "{{ hostname }}"
|
||||
when: hostname is defined
|
||||
|
||||
- name: Set kernel parameters
|
||||
lineinfile: "dest=/etc/default/grub
|
||||
regexp=^GRUB_CMDLINE_LINUX_DEFAULT
|
||||
state=present
|
||||
line='GRUB_CMDLINE_LINUX_DEFAULT=\"{{ kernel_parameters }}\"'"
|
||||
lineinfile:
|
||||
dest: /etc/default/grub
|
||||
regexp: '^GRUB_CMDLINE_LINUX_DEFAULT'
|
||||
state: present
|
||||
line: 'GRUB_CMDLINE_LINUX_DEFAULT=\"{{ kernel_parameters }}\"'
|
||||
when: kernel_parameters is defined and bootloader == 'grub'
|
||||
notify:
|
||||
- rebuild grub
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue