Manjaro install failed, possibly due to to shell changing. Add zsh option.

This commit is contained in:
Hyperling 2021-02-14 16:36:31 -06:00
parent bc041cc3bb
commit 635bb3abc1
2 changed files with 15 additions and 2 deletions

View File

@ -8,3 +8,7 @@
- name: General | Facts | Gather | Locate ansible-pull - name: General | Facts | Gather | Locate ansible-pull
shell: which ansible-pull shell: which ansible-pull
register: ansible_pull_exec register: ansible_pull_exec
- name: General | Facts | Gather | Locate zsh
shell: which zsh
register: zsh_exec

View File

@ -10,6 +10,15 @@
## Superuser ## ## Superuser ##
- name: General | Account Management | User | use BASH (Default)
set_fact:
ling_shell: "{{ bash_exec.stdout }}"
- name: General | Account Management | User | Use ZSH (Arch+Manjaro)
set_fact:
ling_shell: "{{ zsh_exec.stdout }}"
when: ansible_distribution == "Archlinux"
- name: General | Account Management | User | Hyperling - name: General | Account Management | User | Hyperling
user: user:
name: ling name: ling
@ -17,7 +26,7 @@
groups: groups:
- sudo - sudo
append: yes append: yes
shell: "{{ bash_exec.stdout }}" shell: "{{ ling_shell }}"
create_home: yes create_home: yes
generate_ssh_key: yes generate_ssh_key: yes
register: user_ling register: user_ling