|
|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
|
---
|
|
|
|
|
- name: Initial installation of WSL arch
|
|
|
|
|
hosts: all,localhost
|
|
|
|
|
hosts: localhost,all
|
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
|
|
pre_tasks:
|
|
|
|
|
@@ -31,7 +31,7 @@
|
|
|
|
|
name: tobi
|
|
|
|
|
password: $6$jUZIIwoMDSg8B3OJ$tRKNJe.YHLVQRkbRSvmPJqE4lFUBVKKDxy.K688SW.gUP8VdfrkUeIIa7XqI8ovpncoZlt5VbGk7WxMKBCS191
|
|
|
|
|
comment: Tobias Maier
|
|
|
|
|
groups: wheel
|
|
|
|
|
groups: wheel,video
|
|
|
|
|
shell: /bin/zsh
|
|
|
|
|
|
|
|
|
|
- name: Add name to git config
|
|
|
|
|
@@ -73,84 +73,113 @@
|
|
|
|
|
become: yes
|
|
|
|
|
become_user: aur_builder
|
|
|
|
|
|
|
|
|
|
- name: Install ZSH-GIT from AUR
|
|
|
|
|
- name: Install ZSH-GIT and reflector from AUR
|
|
|
|
|
community.general.pacman:
|
|
|
|
|
name: zsh-git
|
|
|
|
|
state: present
|
|
|
|
|
executable: paru
|
|
|
|
|
become: yes
|
|
|
|
|
become_user: aur_builder
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install packages from AUR
|
|
|
|
|
community.general.pacman:
|
|
|
|
|
name: zsh-git,oh-my-zsh-git,zsh-theme-powerlevel10k-git,zsh-autosuggestions,zsh-syntax-highlighting,nano,ly
|
|
|
|
|
name: zsh-git,reflector
|
|
|
|
|
state: present
|
|
|
|
|
executable: paru
|
|
|
|
|
become: yes
|
|
|
|
|
become_user: aur_builder
|
|
|
|
|
|
|
|
|
|
- name: Run reflector to update mirrorlist
|
|
|
|
|
ansible.builtin.command: reflector --latest 20 --sort rate --save /etc/pacman.d/mirrorlist
|
|
|
|
|
|
|
|
|
|
- name: Install packages from AUR
|
|
|
|
|
community.general.pacman:
|
|
|
|
|
name: zsh-git,oh-my-zsh-git,zsh-theme-powerlevel10k-git,zsh-autosuggestions,zsh-syntax-highlighting,nano,ly,ansible,openssh
|
|
|
|
|
state: present
|
|
|
|
|
executable: paru
|
|
|
|
|
become: yes
|
|
|
|
|
become_user: aur_builder
|
|
|
|
|
|
|
|
|
|
- name: Install Sway stuff
|
|
|
|
|
community.general.pacman:
|
|
|
|
|
name: sway,foot,foot-terminfo
|
|
|
|
|
name: sway,foot,foot-terminfo,waybar,ttf-font-awesome,sway-launcher-desktop,pipewire,pipewire-pulse,bluez,bluez-utils,firefox,archlinux-wallpaper,iwd,btop,light,wob-git,udiskie,ranger,mako,micro,man,wdisplays,swayidle,swaylock-effects-git,pamixer,qt5-wayland
|
|
|
|
|
state: present
|
|
|
|
|
executable: paru
|
|
|
|
|
become: yes
|
|
|
|
|
become_user: aur_builder
|
|
|
|
|
|
|
|
|
|
- name: Add WLR_RENDERER_ALLOW_SOFTWARE to /etc/environment
|
|
|
|
|
- name: Add WLR_RENDERER_ALLOW_SOFTWARE to /etc/environment, needed for testing in VM
|
|
|
|
|
ansible.builtin.lineinfile:
|
|
|
|
|
path: /etc/environment
|
|
|
|
|
regexp: '^WLR_RENDERER_ALLOW_SOFTWARE='
|
|
|
|
|
line: WLR_RENDERER_ALLOW_SOFTWARE=1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Clone dotfiles
|
|
|
|
|
ansible.builtin.git:
|
|
|
|
|
repo: https://gitea.maiertobi.de/tobimai/dotfiles.git
|
|
|
|
|
dest: /tmp/dotfiles
|
|
|
|
|
|
|
|
|
|
- name: Copy rc to home dir
|
|
|
|
|
ansible.builtin.copy:
|
|
|
|
|
src: //tmp/dotfiles/.zshrc
|
|
|
|
|
dest: /home/tobi/.zshrc
|
|
|
|
|
owner: tobi
|
|
|
|
|
group: tobi
|
|
|
|
|
mode: '0644'
|
|
|
|
|
remote_src: yes
|
|
|
|
|
|
|
|
|
|
- name: Copy p10k to home dir
|
|
|
|
|
ansible.builtin.copy:
|
|
|
|
|
src: //tmp/dotfiles/.p10k.zsh
|
|
|
|
|
dest: /home/tobi/.p10k.zsh
|
|
|
|
|
owner: tobi
|
|
|
|
|
group: tobi
|
|
|
|
|
mode: '0644'
|
|
|
|
|
remote_src: yes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Ensures sway config direcotry exists
|
|
|
|
|
dest: /home/tobi/git/dotfiles
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Ensures directories exist
|
|
|
|
|
ansible.builtin.file:
|
|
|
|
|
path: path=/home/tobi/.config/sway
|
|
|
|
|
path: /home/tobi/{{ item }}
|
|
|
|
|
state: directory
|
|
|
|
|
group: tobi
|
|
|
|
|
owner: tobi
|
|
|
|
|
mode: '0744'
|
|
|
|
|
|
|
|
|
|
- name: Copy sway config to config
|
|
|
|
|
ansible.builtin.copy:
|
|
|
|
|
src: //tmp/dotfiles/sway_config
|
|
|
|
|
dest: /home/tobi/.config/sway/config
|
|
|
|
|
loop:
|
|
|
|
|
- .config/sway
|
|
|
|
|
- .config/foot
|
|
|
|
|
- .config/waybar
|
|
|
|
|
- .config/mako
|
|
|
|
|
- git
|
|
|
|
|
|
|
|
|
|
- name: Copy ZSH dotfiles
|
|
|
|
|
copy:
|
|
|
|
|
src: //home/tobi/git/dotfiles/{{ item.src }}
|
|
|
|
|
dest: /home/tobi/{{ item.dest }}
|
|
|
|
|
remote_src: yes
|
|
|
|
|
with_items:
|
|
|
|
|
- { src: '.zshrc', dest: '.zshrc' }
|
|
|
|
|
- { src: '.p10k.zsh', dest: '.p10k.zsh' }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Copy config files
|
|
|
|
|
copy:
|
|
|
|
|
src: //home/tobi/git/dotfiles/{{ item.src }}
|
|
|
|
|
dest: /home/tobi/.config/{{ item.dest }}
|
|
|
|
|
remote_src: yes
|
|
|
|
|
owner: tobi
|
|
|
|
|
group: tobi
|
|
|
|
|
mode: '0644'
|
|
|
|
|
remote_src: yes
|
|
|
|
|
with_items:
|
|
|
|
|
- { src: 'sway_config', dest: 'sway/config' }
|
|
|
|
|
- { src: 'foot.ini', dest: 'foot/foot.ini' }
|
|
|
|
|
- { src: 'waybar/waybar.config', dest: 'waybar/config' }
|
|
|
|
|
- { src: 'waybar/style.css', dest: 'waybar/style.css' }
|
|
|
|
|
- { src: 'mako.config', dest: 'mako/config' }
|
|
|
|
|
|
|
|
|
|
- name: Enable service ly, and not touch the state
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Enable services
|
|
|
|
|
ansible.builtin.service:
|
|
|
|
|
name: ly
|
|
|
|
|
name: "{{ item }}"
|
|
|
|
|
enabled: yes
|
|
|
|
|
with_items:
|
|
|
|
|
- ly
|
|
|
|
|
- iwd
|
|
|
|
|
|
|
|
|
|
- name: Clone install repo for later use
|
|
|
|
|
ansible.builtin.git:
|
|
|
|
|
repo: https://gitea.maiertobi.de/tobimai/setup_ansible_playbooks.git
|
|
|
|
|
dest: /home/tobi/git/setup_ansible
|
|
|
|
|
update: no
|
|
|
|
|
|
|
|
|
|
- name: Change file ownership to tobi
|
|
|
|
|
ansible.builtin.file:
|
|
|
|
|
path: /home/tobi/git
|
|
|
|
|
owner: tobi
|
|
|
|
|
group: tobi
|
|
|
|
|
recurse: yes
|
|
|
|
|
|
|
|
|
|
- name: Install More apps
|
|
|
|
|
community.general.pacman:
|
|
|
|
|
name: visual-studio-code-bin,cargo,python,nextcloud-client
|
|
|
|
|
state: present
|
|
|
|
|
executable: paru
|
|
|
|
|
become: yes
|
|
|
|
|
become_user: aur_builder
|
|
|
|
|
|
|
|
|
|
- name: reboot
|
|
|
|
|
reboot:
|
|
|
|
|
|