Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions playbooks/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@
tasks:
- name: All the libraries i love
become: true
apt:
name: fzf
state: present
vars:
packages:
ansible.builtin.apt:
pkg:
- fzf
- ripgrep
- pavucontrol
- xclip
- jq
- tldr
- shutter
loop_control:
loop_var: package
with_items: "{{ packages }}"
12 changes: 8 additions & 4 deletions playbooks/i3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@
dest: /tmp/keyring.deb
checksum: sha256:f9bb4340b5ce0ded29b7e014ee9ce788006e9bbfe31e96c09b2118ab91fca734

- name: Return motd to registered var
- name: Install sur5r's i3wm signing key
become: true
ansible.builtin.command: apt install /tmp/keyring.deb
ansible.builtin.apt:
deb: /tmp/keyring.deb

- name: Return motd to registered var
- name: Add sur5r's i3 repository into sources list
become: true
ansible.builtin.command: echo "deb http://debian.sur5r.net/i3/ $(grep '^DISTRIB_CODENAME=' /etc/lsb-release | cut -f2 -d=) universe" | tee /etc/apt/sources.list.d/sur5r-i3.list
ansible.builtin.apt_repository:
repo: deb http://debian.sur5r.net/i3/ {{ ansible_distribution_release }} universe
state: present
filename: sur5r-i3

- name: Install i3
become: true
Expand Down
12 changes: 5 additions & 7 deletions playbooks/zsh.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
- hosts: localhost
vars:
username: "theprimeagen"
email: "theprimeagen@gmail.com"
ssh_key_filename: "id_theprimeagen_rsa"
config: "{{ lookup('ansible.builtin.env', 'XDG_CONFIG') }}"
home: "{{ lookup('ansible.builtin.env', 'HOME') }}"
zsh_dependencies: []
tasks:
- name: Include main vars
ansible.builtin.include_vars:
file: vars.yml

- name: Ensure Zsh with dependencies are installed
apt:
name: "{{ ['zsh'] + zsh_dependencies }}"
Expand All @@ -30,8 +29,7 @@
register: ohmyzsh_result
failed_when: "'FAILED' in ohmyzsh_result.stderr"


# This is another one of the items i cannot seem to figure out. I am using root but i am not getting this to change forever...
# For this to work you need to logout and in again. chsh edits the shell defined in /etc/passwd which is the login shell
- name: sets default shell to zsh
become: true
ansible.builtin.command: chsh -s /usr/bin/zsh