Compare commits

18 Commits

Author SHA1 Message Date
d7dbbe3fa3 added few more essential packages 2021-11-20 22:12:21 +01:00
dd01a48faa updated config files 2021-11-20 12:35:09 +01:00
df2dd86e62 updated config files 2021-11-20 12:27:02 +01:00
b0f23ea4b7 updated config files 2021-11-20 12:02:38 +01:00
07ac7cd897 updated config files 2021-11-20 11:21:11 +01:00
9d83d2d1a9 updated config files 2021-11-20 11:19:50 +01:00
aead01a867 updated config files 2021-11-19 22:08:36 +01:00
5147979ad6 updated config files 2021-11-19 22:03:02 +01:00
0d2da855c8 updated config files 2021-11-19 21:56:26 +01:00
f4ff8be48c updated config files 2021-11-19 21:51:51 +01:00
8698693917 updated config files 2021-11-18 00:14:22 +01:00
4b8cb67efa updated config files 2021-11-15 21:31:27 +01:00
030612da0c updated config files 2021-11-14 22:32:50 +01:00
4d44035c0d updated config files 2021-11-14 21:55:08 +01:00
1ee74960b5 updated config files 2021-11-14 21:25:34 +01:00
13e5757b64 added foot config 2021-11-13 11:10:11 +01:00
212343ba76 Update 'playbook_sway.yml' 2021-11-13 09:52:38 +01:00
68548b9c53 Merge pull request 'fixed config file permissions' (#1) from updates into master
Reviewed-on: https://gitea.maiertobi.de/tobimai/setup_ansible_playbooks/pulls/1
2021-11-13 00:29:02 +01:00

View File

@@ -1,6 +1,6 @@
---
- name: Initial installation of WSL arch
hosts: 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: