30 lines
681 B
YAML
30 lines
681 B
YAML
- name: Update repositories
|
|
become: true
|
|
apt:
|
|
upgrade: yes
|
|
state: latest
|
|
update_cache: yes
|
|
cache_valid_time: 86400 # One day
|
|
- name: Install global packages
|
|
become: true
|
|
apt:
|
|
state: latest
|
|
pkg:
|
|
- git
|
|
- make
|
|
- keepassxc
|
|
- zsh
|
|
- ripgrep
|
|
- name: Set default shell to zsh
|
|
become: true
|
|
user:
|
|
name: "{{ ansible_user_id }}"
|
|
shell: /usr/bin/zsh
|
|
- name: Install .gitconfig
|
|
template:
|
|
src: "{{ role_path }}/templates/.gitconfig.j2"
|
|
dest: "/home/{{ ansible_user_id }}/.gitconfig"
|
|
- name: Install .zshrc
|
|
template:
|
|
src: "{{ role_path }}/templates/.zshrc.j2"
|
|
dest: "/home/{{ ansible_user_id }}/.zshrc"
|