mirror of
https://gitlab.com/sagidayan/linux-config.git
synced 2024-11-24 08:15:26 +00:00
Sagi Dayan
b44dfac7e0
- If `man_path` is defiled will add man page to system - If `autocomplete_path` is defined will add autocomplete source
101 lines
2 KiB
YAML
101 lines
2 KiB
YAML
- name: Installing packages
|
|
become: true
|
|
package:
|
|
name:
|
|
- zsh
|
|
- curl
|
|
- gcc
|
|
- make
|
|
- wget
|
|
- git
|
|
- ranger
|
|
- jq
|
|
- man-db
|
|
state: present
|
|
|
|
- name: Some more packages (RedHat based)
|
|
become: true
|
|
package:
|
|
name:
|
|
- podman
|
|
when: ansible_facts['os_family'] == "RedHat"
|
|
|
|
- name: Copy gitconfig base
|
|
copy:
|
|
src: dotfiles/gitconfig
|
|
dest: ~/.gitconfig
|
|
force: no
|
|
|
|
- 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
|
|
|
|
- name: Copy zsh config
|
|
copy:
|
|
src: dotfiles/zshrc
|
|
dest: ~/.zshrc
|
|
force: yes
|
|
|
|
- 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
|
|
changed_when: false
|
|
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
|
|
|
|
- name: Verifying shell config folder
|
|
file:
|
|
path: ~/.shellconfig
|
|
state: directory
|
|
|
|
- name: Verifying shell autocomplete config folder
|
|
file:
|
|
path: ~/.shellconfig/autocomplete
|
|
state: directory
|
|
|
|
- name: Sync Common shell settings...
|
|
changed_when: false
|
|
copy:
|
|
src: dotfiles/shellconfig/common.sh
|
|
dest: ~/.shellconfig/common.sh
|
|
force: yes
|
|
|
|
- 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
|
|
|
|
|
|
- name: Install modern UNIX tools
|
|
include_role:
|
|
name: modern_unix_tools
|