Switch wallpaper
Signed-off-by: Micke Nordin <kano@sunet.se>
This commit is contained in:
parent
f7ac2f3f86
commit
c28f562e05
4 changed files with 29 additions and 4 deletions
BIN
data/debian.jpg
Normal file
BIN
data/debian.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 106 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.4 MiB |
27
playbooks/grub.yaml
Normal file
27
playbooks/grub.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
- name: Set up grub env
|
||||
vars:
|
||||
variables:
|
||||
- key: GRUB_GFXMODE
|
||||
value: 1920x1080x32
|
||||
- key: GRUB_CMDLINE_LINUX_DEFAULT
|
||||
value: '"quiet splash"'
|
||||
hosts: localhost
|
||||
connection: local
|
||||
become: false
|
||||
tasks:
|
||||
- name: Set up environment variables
|
||||
become: true
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/default/grub
|
||||
regex: ^{{ item.key }}=
|
||||
line: "{{ item.key }}={{ item.value }}"
|
||||
loop: "{{ variables }}"
|
||||
- name: Update grub
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
cmd: update-grub2
|
||||
- name: Set default theme
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
cmd: plymouth-set-default-theme -R moonlight
|
|
@ -3,7 +3,7 @@
|
|||
vars:
|
||||
uid: "{{ lookup('env','USER') }}"
|
||||
TZ: "{{ lookup('env','TZ') }}"
|
||||
wallpaper_path: /home/{{ uid }}/.config/wallpaper/savannah-landscape-with-acacia-trees.jpeg
|
||||
wallpaper_path: /home/{{ uid }}/.config/wallpaper/debian.jpg
|
||||
hosts: localhost
|
||||
connection: local
|
||||
become: false
|
||||
|
@ -52,12 +52,10 @@
|
|||
ansible.builtin.file:
|
||||
dest: /home/{{ uid }}/.config/wallpaper
|
||||
state: directory
|
||||
# Image by upklyak on Freepik
|
||||
# https://www.freepik.com/free-vector/savannah-landscape-with-acacia-trees-night-vector-cartoon-illustration-african-savanna-with-full-moon-stars-dark-sky-concept-safari-vacation-trip-travel_25694514.htm
|
||||
- name: Setup wall paper
|
||||
ansible.builtin.copy:
|
||||
dest: '{{ wallpaper_path }}'
|
||||
src: ../data/savannah-landscape-with-acacia-trees.jpeg
|
||||
src: ../data/debian.jpg
|
||||
notify: Reload sway
|
||||
handlers:
|
||||
- name: Reload sway
|
||||
|
|
Loading…
Add table
Reference in a new issue