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: yes
become_user: aur_builder become_user: aur_builder
- name: Install packages from AUR - name: Install packages from AUR
community.general.pacman: 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 state: present
executable: paru executable: paru
become: yes become: yes
become_user: aur_builder become_user: aur_builder
- name: Install Sway stuff - name: Install Sway stuff
community.general.pacman: 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 state: present
executable: paru executable: paru
become: yes become: yes
@@ -105,46 +103,38 @@
regexp: '^WLR_RENDERER_ALLOW_SOFTWARE=' regexp: '^WLR_RENDERER_ALLOW_SOFTWARE='
line: WLR_RENDERER_ALLOW_SOFTWARE=1 line: WLR_RENDERER_ALLOW_SOFTWARE=1
- name: Clone dotfiles - name: Clone dotfiles
ansible.builtin.git: ansible.builtin.git:
repo: https://gitea.maiertobi.de/tobimai/dotfiles.git repo: https://gitea.maiertobi.de/tobimai/dotfiles.git
dest: /tmp/dotfiles dest: /home/tobi/git/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 - name: Ensures directories exist
ansible.builtin.file: ansible.builtin.file:
path: /home/tobi/.config/{{ item }} path: /home/tobi/{{ item }}
state: directory state: directory
group: tobi group: tobi
owner: tobi owner: tobi
mode: '0744' mode: '0744'
loop: loop:
- sway - .config/sway
- foot - .config/foot
- waybar - .config/waybar
- git
- name: Your copy task - name: Copy ZSH dotfiles
copy: 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 }} dest: /home/tobi/.config/{{ item.dest }}
remote_src: yes remote_src: yes
with_items: with_items:
@@ -160,5 +150,18 @@
name: ly name: ly
enabled: yes 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 - name: reboot
reboot: reboot: