2021-10-22 11:45:20 +00:00
|
|
|
- name: Installing packages
|
|
|
|
become: true
|
|
|
|
package:
|
|
|
|
name:
|
2021-10-30 09:54:38 +00:00
|
|
|
- zsh
|
2021-10-22 11:45:20 +00:00
|
|
|
- curl
|
2021-12-14 11:20:38 +00:00
|
|
|
- gcc
|
|
|
|
- make
|
2021-10-22 11:45:20 +00:00
|
|
|
- wget
|
|
|
|
- git
|
2021-10-30 09:54:38 +00:00
|
|
|
- ranger
|
2021-10-22 11:45:20 +00:00
|
|
|
state: present
|
|
|
|
|
2021-10-30 08:09:47 +00:00
|
|
|
- name: Some more packages (RedHat based)
|
|
|
|
become: true
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- podman
|
|
|
|
when: ansible_facts['os_family'] == "RedHat"
|
|
|
|
|
2021-10-22 11:45:20 +00:00
|
|
|
- name: Copy gitconfig base
|
|
|
|
copy:
|
|
|
|
src: dotfiles/gitconfig
|
|
|
|
dest: ~/.gitconfig
|
|
|
|
force: no
|
|
|
|
|
2021-10-30 09:54:38 +00:00
|
|
|
- name: Setting up oh-my-zsh
|
|
|
|
git:
|
|
|
|
repo: https://github.com/ohmyzsh/ohmyzsh.git
|
|
|
|
dest: ~/.oh-my-zsh
|
|
|
|
|
|
|
|
- name: Making sure to use ZSH as shell
|
|
|
|
become: true
|
|
|
|
user:
|
|
|
|
name: "{{ running_user }}"
|
|
|
|
shell: /bin/zsh
|
|
|
|
|
2021-10-22 11:45:20 +00:00
|
|
|
- name: Copy zsh config
|
|
|
|
copy:
|
|
|
|
src: dotfiles/zshrc
|
|
|
|
dest: ~/.zshrc
|
|
|
|
force: yes
|
|
|
|
|
2021-10-31 06:34:38 +00:00
|
|
|
- name: Fix oh-my-zsh sourcing
|
|
|
|
ansible.builtin.lineinfile:
|
|
|
|
path: "~/.zshrc"
|
|
|
|
regexp: "^export ZSH="
|
|
|
|
line: 'export ZSH="/home/{{running_user}}/.oh-my-zsh"'
|
|
|
|
|
2021-10-31 12:32:11 +00:00
|
|
|
- name: Add ranger devicons plugin repo
|
|
|
|
git:
|
|
|
|
repo: https://github.com/alexanderjeurissen/ranger_devicons.git
|
|
|
|
dest: ~/.config/ranger/plugins/ranger_devicons
|
|
|
|
|
|
|
|
- name: Validate ranger config file
|
2021-12-14 11:20:38 +00:00
|
|
|
changed_when: false
|
2021-10-31 12:32:11 +00:00
|
|
|
file:
|
|
|
|
path: ~/.config/ranger/rc.conf
|
|
|
|
state: touch
|
|
|
|
|
|
|
|
- name: Activate ranger devicons plugin
|
|
|
|
lineinfile:
|
|
|
|
path: ~/.config/ranger/rc.conf
|
|
|
|
line: 'default_linemode devicons'
|
|
|
|
state: present
|
2021-10-31 06:34:38 +00:00
|
|
|
|
2021-10-22 11:45:20 +00:00
|
|
|
- name: Verifying shell config folder
|
|
|
|
file:
|
|
|
|
path: ~/.shellconfig
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Sync Common shell settings...
|
2021-12-14 11:20:38 +00:00
|
|
|
changed_when: false
|
2021-10-22 11:45:20 +00:00
|
|
|
copy:
|
|
|
|
src: dotfiles/shellconfig/common.sh
|
|
|
|
dest: ~/.shellconfig/common.sh
|
|
|
|
force: yes
|
|
|
|
|
|
|
|
- name: verify Bat (better Cat) theme
|
2021-12-14 11:20:38 +00:00
|
|
|
changed_when: false
|
2021-10-22 11:45:20 +00:00
|
|
|
ansible.builtin.lineinfile:
|
|
|
|
path: "~/.shellconfig/common.sh"
|
|
|
|
regexp: "^export BAT_THEME="
|
|
|
|
line: 'export BAT_THEME="${{theme}}"'
|
|
|
|
|
|
|
|
- name: Copy shell aliases
|
|
|
|
copy:
|
|
|
|
src: dotfiles/shellconfig/aliases.sh
|
|
|
|
dest: ~/.shellconfig/aliases.sh
|
|
|
|
force: no
|
|
|
|
|
|
|
|
- name: Copy shell functions
|
|
|
|
copy:
|
|
|
|
src: dotfiles/shellconfig/functions.sh
|
|
|
|
dest: ~/.shellconfig/functions.sh
|
|
|
|
force: no
|
|
|
|
|
|
|
|
- name: Copy shell environment
|
|
|
|
copy:
|
|
|
|
src: dotfiles/shellconfig/environment.sh
|
|
|
|
dest: ~/.shellconfig/environment.sh
|
|
|
|
force: no
|
2021-12-14 11:20:38 +00:00
|
|
|
|
|
|
|
- name: Install rust and common tooling
|
|
|
|
vars:
|
|
|
|
rustup_user: "{{ running_user }}"
|
|
|
|
rustup_cargo_crates: [bat,lsd,bottom]
|
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: hurricanehrndz.rustup
|
|
|
|
|