Added distro and become password verification, Set fish shell as the default shell
This commit is contained in:
@@ -3,3 +3,14 @@
|
||||
ansible.builtin.pacman:
|
||||
name: fish
|
||||
when: chezmoi.osRelease.id == "arch"
|
||||
|
||||
- name: Find Fish shell binary
|
||||
command: which fish
|
||||
register: fish_path
|
||||
changed_when: false
|
||||
failed_when: fish_path.rc != 0
|
||||
|
||||
- name: Set the user's shell
|
||||
ansible.builtin.user:
|
||||
name: "{{ chezmoi.username }}"
|
||||
shell: "{{ fish_path.stdout }}"
|
||||
|
Reference in New Issue
Block a user