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
|
2022-01-03 09:46:10 +00:00
|
|
|
- jq
|
2022-11-06 14:07:55 +00:00
|
|
|
- nodejs
|
|
|
|
- npm
|
2022-01-05 12:32:39 +00:00
|
|
|
- man-db
|
2022-11-06 14:07:55 +00:00
|
|
|
- clang
|
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
|
2022-01-18 09:19:19 +00:00
|
|
|
mode: preserve
|
2021-10-22 11:45:20 +00:00
|
|
|
|
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
|
2022-01-18 09:19:19 +00:00
|
|
|
version: master
|
|
|
|
|
2021-10-30 09:54:38 +00:00
|
|
|
|
|
|
|
- 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
|
2022-01-18 09:19:19 +00:00
|
|
|
mode: preserve
|
2021-10-22 11:45:20 +00:00
|
|
|
|
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
|
2022-01-18 09:19:19 +00:00
|
|
|
version: main
|
2021-10-31 12:32:11 +00:00
|
|
|
|
|
|
|
- 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
|
2022-01-18 09:19:19 +00:00
|
|
|
mode: u=rw,g=r,o=r
|
2021-10-31 12:32:11 +00:00
|
|
|
|
|
|
|
- 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
|
2022-01-18 09:19:19 +00:00
|
|
|
mode: '0755'
|
2021-10-22 11:45:20 +00:00
|
|
|
|
2022-01-05 12:32:39 +00:00
|
|
|
- name: Verifying shell autocomplete config folder
|
|
|
|
file:
|
|
|
|
path: ~/.shellconfig/autocomplete
|
|
|
|
state: directory
|
2022-01-18 09:19:19 +00:00
|
|
|
mode: '0755'
|
2022-01-05 12:32:39 +00:00
|
|
|
|
2022-01-10 08:11:20 +00:00
|
|
|
- name: Verifying shell cheat config folder
|
|
|
|
file:
|
|
|
|
path: ~/.shellconfig/cheat
|
|
|
|
state: directory
|
2022-01-18 09:19:19 +00:00
|
|
|
mode: '0755'
|
2022-01-10 08:11:20 +00:00
|
|
|
|
2021-10-22 11:45:20 +00:00
|
|
|
- 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
|
2022-01-18 09:19:19 +00:00
|
|
|
mode: preserve
|
2021-10-22 11:45:20 +00:00
|
|
|
|
2022-01-10 08:11:20 +00:00
|
|
|
- name: Sync Cheat script
|
|
|
|
changed_when: false
|
|
|
|
copy:
|
|
|
|
src: dotfiles/shellconfig/cheat.sh
|
|
|
|
dest: ~/.shellconfig/cheat.sh
|
|
|
|
force: yes
|
|
|
|
mode: u+rx,g-rx,o-rwx
|
|
|
|
|
2021-10-22 11:45:20 +00:00
|
|
|
- name: Copy shell aliases
|
|
|
|
copy:
|
|
|
|
src: dotfiles/shellconfig/aliases.sh
|
|
|
|
dest: ~/.shellconfig/aliases.sh
|
|
|
|
force: no
|
2022-01-18 09:19:19 +00:00
|
|
|
mode: preserve
|
2021-10-22 11:45:20 +00:00
|
|
|
|
|
|
|
- name: Copy shell functions
|
|
|
|
copy:
|
|
|
|
src: dotfiles/shellconfig/functions.sh
|
|
|
|
dest: ~/.shellconfig/functions.sh
|
|
|
|
force: no
|
2022-01-18 09:19:19 +00:00
|
|
|
mode: preserve
|
2021-10-22 11:45:20 +00:00
|
|
|
|
|
|
|
- name: Copy shell environment
|
|
|
|
copy:
|
|
|
|
src: dotfiles/shellconfig/environment.sh
|
|
|
|
dest: ~/.shellconfig/environment.sh
|
|
|
|
force: no
|
2022-01-18 09:19:19 +00:00
|
|
|
mode: preserve
|
2021-12-14 11:20:38 +00:00
|
|
|
|
2022-01-13 17:29:48 +00:00
|
|
|
- name: Copy topics cheat sheet list
|
2022-01-10 08:11:20 +00:00
|
|
|
copy:
|
2022-01-13 17:29:48 +00:00
|
|
|
src: dotfiles/shellconfig/cheat/topics
|
|
|
|
dest: ~/.shellconfig/cheat/topics
|
2022-01-10 08:11:20 +00:00
|
|
|
force: yes
|
2022-01-18 09:19:19 +00:00
|
|
|
mode: preserve
|
2022-01-10 08:11:20 +00:00
|
|
|
|
2022-01-03 09:46:10 +00:00
|
|
|
- name: Install modern UNIX tools
|
2021-12-20 10:28:43 +00:00
|
|
|
include_role:
|
2022-01-03 09:46:10 +00:00
|
|
|
name: modern_unix_tools
|
2022-01-20 18:12:28 +00:00
|
|
|
|
|
|
|
- name: Copy workspaces files
|
|
|
|
block:
|
|
|
|
- name: Make sure directory is there
|
|
|
|
file:
|
|
|
|
path: ~/.shellconfig/workspaces
|
|
|
|
state: directory
|
|
|
|
mode: '0755'
|
|
|
|
- name: Copy json
|
|
|
|
copy:
|
|
|
|
src: dotfiles/shellconfig/workspaces/workspaces.json
|
|
|
|
dest: ~/.shellconfig/workspaces/workspaces.json
|
|
|
|
force: no
|
|
|
|
mode: preserve
|
|
|
|
- name: Copy add script
|
|
|
|
copy:
|
|
|
|
src: dotfiles/shellconfig/workspaces/add_workspace.sh
|
|
|
|
dest: ~/.shellconfig/workspaces/add_workspace.sh
|
|
|
|
force: yes
|
|
|
|
mode: preserve
|
|
|
|
- name: Copy open script
|
|
|
|
copy:
|
|
|
|
src: dotfiles/shellconfig/workspaces/open_workspace.sh
|
|
|
|
dest: ~/.shellconfig/workspaces/open_workspace.sh
|
|
|
|
force: yes
|
|
|
|
mode: preserve
|
|
|
|
- name: Copy delete script
|
|
|
|
copy:
|
|
|
|
src: dotfiles/shellconfig/workspaces/delete_workspace.sh
|
|
|
|
dest: ~/.shellconfig/workspaces/delete_workspace.sh
|
|
|
|
force: yes
|
|
|
|
mode: preserve
|
|
|
|
|
|
|
|
|