updated config files

This commit is contained in:
2021-11-18 00:14:22 +01:00
parent 4b8cb67efa
commit 8698693917

View File

@@ -81,19 +81,17 @@
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,oh-my-zsh-git,zsh-theme-powerlevel10k-git,zsh-autosuggestions,zsh-syntax-highlighting,nano,ly,ansible
state: present
executable: paru
become: yes
become_user: aur_builder
- name: Install Sway stuff
community.general.pacman:
name: sway,foot,foot-terminfo,waybar,ttf-font-awesome,sway-launcher-desktop,pipewire,pipewire-pulse,bluez,bluez-utils,firefox
name: sway,foot,foot-terminfo,waybar,ttf-font-awesome,sway-launcher-desktop,pipewire,pipewire-pulse,bluez,bluez-utils,firefox,archlinux-wallpaper
state: present
executable: paru
become: yes
@@ -104,47 +102,39 @@
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 config directories exist
dest: /home/tobi/git/dotfiles
- name: Ensures directories exist
ansible.builtin.file:
path: /home/tobi/.config/{{ item }}
path: /home/tobi/{{ item }}
state: directory
group: tobi
owner: tobi
mode: '0744'
loop:
- sway
- foot
- waybar
- name: Your copy task
- .config/sway
- .config/foot
- .config/waybar
- git
- name: Copy ZSH dotfiles
copy:
src: //tmp/dotfiles/{{ item.src }}
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
with_items:
@@ -160,5 +150,18 @@
name: ly
enabled: yes
- 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: reboot
reboot: