ansible-lint --fix
This commit is contained in:
parent
5634cd32d3
commit
faa046aa21
21 changed files with 181 additions and 179 deletions
|
@ -1 +1,2 @@
|
|||
---
|
||||
desktop_user: mark
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
- block:
|
||||
- name: pacman sync
|
||||
community.general.pacman:
|
||||
update_cache: true
|
||||
- when: not archiso_detected
|
||||
block:
|
||||
- name: Pacman sync
|
||||
community.general.pacman:
|
||||
update_cache: true
|
||||
|
||||
- import_tasks: software/minimal.yaml
|
||||
- import_tasks: software/desktop.yaml
|
||||
- import_tasks: software/graphics.yaml
|
||||
- import_tasks: software/dev.yaml
|
||||
- import_tasks: software/gamedev.yaml
|
||||
when: not archiso_detected
|
||||
- ansible.builtin.import_tasks: software/minimal.yaml
|
||||
- ansible.builtin.import_tasks: software/desktop.yaml
|
||||
- ansible.builtin.import_tasks: software/graphics.yaml
|
||||
- ansible.builtin.import_tasks: software/dev.yaml
|
||||
- ansible.builtin.import_tasks: software/gamedev.yaml
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
- name: install desktop packages
|
||||
package:
|
||||
---
|
||||
- name: Install desktop packages
|
||||
ansible.builtin.package:
|
||||
state: present
|
||||
name:
|
||||
- adwaita-cursors
|
||||
|
@ -36,10 +37,10 @@
|
|||
- xdg-user-dirs
|
||||
- xorg-xwayland
|
||||
|
||||
- name: install AUR packages
|
||||
- name: Install AUR packages
|
||||
become: true
|
||||
become_user: "{{ desktop_user }}"
|
||||
shell: >-
|
||||
ansible.builtin.command: >-
|
||||
paru -Sy --needed --noconfirm {{ packages | join(' ') }}
|
||||
vars:
|
||||
packages:
|
||||
|
@ -47,17 +48,15 @@
|
|||
- ttf-envy-code-r
|
||||
- winbox
|
||||
|
||||
- name: loginctl | enable linger for desktop user
|
||||
command: "loginctl enable-linger {{ desktop_user }}"
|
||||
|
||||
- name: syncthing | generate default config
|
||||
become: yes
|
||||
- name: loginctl | Enable linger for desktop user
|
||||
ansible.builtin.command: "loginctl enable-linger {{ desktop_user }}"
|
||||
- name: syncthing | Generate default config
|
||||
become: true
|
||||
become_user: "{{ desktop_user }}"
|
||||
command: >-
|
||||
ansible.builtin.command: >-
|
||||
syncthing generate --no-default-folder --skip-port-probing
|
||||
|
||||
- name: syncthing | enable user systemd unit
|
||||
systemd:
|
||||
- name: syncthing | Enable user systemd unit
|
||||
ansible.builtin.systemd:
|
||||
name: syncthing.service
|
||||
enabled: true
|
||||
state: started
|
||||
|
@ -68,38 +67,37 @@
|
|||
- name: greetd | configure | use tuigreet
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/greetd/config.toml
|
||||
regexp: '^command ='
|
||||
regexp: "^command ="
|
||||
line: command = "tuigreet --cmd sway"
|
||||
|
||||
- name: greetd | enable systemd unit
|
||||
systemd:
|
||||
- name: greetd | Enable systemd unit
|
||||
ansible.builtin.systemd:
|
||||
name: greetd
|
||||
enabled: true
|
||||
|
||||
- name: bluetooth | enable systemd unit
|
||||
systemd:
|
||||
- name: bluetooth | Enable systemd unit
|
||||
ansible.builtin.systemd:
|
||||
name: bluetooth
|
||||
enabled: true
|
||||
|
||||
- name: wal | set initial colorscheme
|
||||
- name: wal | Set initial colorscheme
|
||||
become: true
|
||||
become_user: "{{ desktop_user }}"
|
||||
shell: wal --theme hybrid-material
|
||||
|
||||
- name: sway | reload if running
|
||||
ansible.builtin.command: wal --theme hybrid-material
|
||||
- name: sway | Reload if running
|
||||
become: true
|
||||
become_user: "{{ desktop_user }}"
|
||||
shell: pidof sway && SWAYSOCK=$(ls /run/user/*/sway-ipc.*.sock | head -n 1) swaymsg reload
|
||||
ansible.builtin.shell: pidof sway && SWAYSOCK=$(ls /run/user/*/sway-ipc.*.sock | head -n 1) swaymsg reload
|
||||
ignore_errors: true
|
||||
|
||||
- name: graphics | probe for graphics cards
|
||||
shell: lspci -nnk | grep -A 3 -E "VGA|3D"
|
||||
- name: graphics | Probe for graphics cards
|
||||
ansible.builtin.shell: lspci -nnk | grep -A 3 -E "VGA|3D"
|
||||
register: lspci
|
||||
|
||||
- name: graphics | install radeon specific packages
|
||||
package:
|
||||
- name: graphics | Install radeon specific packages
|
||||
ansible.builtin.package:
|
||||
state: present
|
||||
name:
|
||||
- hip-runtime-amd
|
||||
- rocm-opencl-runtime
|
||||
- vulkan-radeon
|
||||
- hip-runtime-amd
|
||||
- rocm-opencl-runtime
|
||||
- vulkan-radeon
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
- name: install gamedev packages
|
||||
package:
|
||||
---
|
||||
- name: Install gamedev packages
|
||||
ansible.builtin.package:
|
||||
state: present
|
||||
name:
|
||||
- neovim
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
- name: install gamedev packages
|
||||
package:
|
||||
---
|
||||
- name: Install gamedev packages
|
||||
ansible.builtin.package:
|
||||
state: present
|
||||
name:
|
||||
- godot
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
- name: install graphics packages
|
||||
package:
|
||||
---
|
||||
- name: Install graphics packages
|
||||
ansible.builtin.package:
|
||||
state: present
|
||||
name:
|
||||
- blender
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
- name: install minimal packages
|
||||
package:
|
||||
---
|
||||
- name: Install minimal packages
|
||||
ansible.builtin.package:
|
||||
state: present
|
||||
name:
|
||||
- eza
|
||||
- fzf
|
||||
- htop
|
||||
- ripgrep
|
||||
- zip
|
||||
- unzip
|
||||
- zsh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue