This repository has been archived on 2024-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
setup/roles/system/tasks/main.yml
Pim Kunis 6670ffafa9 set zsh as login shell
install various packages
2022-11-26 01:51:20 +01:00

26 lines
606 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
- name: Check login shell
setup:
fact_path: "{{ role_path }}/facts"
- name: Print all available facts
ansible.builtin.debug:
var: ansible_facts
- name: Set default shell to zsh
become: true
shell: usermod -s $(which zsh) {{ ansible_user_id }}
when: ansible_facts.ansible_local.login_shell.find('zsh') == -1