From 635bb3abc1a407262ccc97b96636c154949ac563 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sun, 14 Feb 2021 16:36:31 -0600 Subject: [PATCH] Manjaro install failed, possibly due to to shell changing. Add zsh option. --- facts/general/gather.yml | 4 ++++ tasks/general/acct_mgmt/users.yml | 13 +++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/facts/general/gather.yml b/facts/general/gather.yml index 3ac24a0..d345c4e 100644 --- a/facts/general/gather.yml +++ b/facts/general/gather.yml @@ -8,3 +8,7 @@ - name: General | Facts | Gather | Locate ansible-pull shell: which ansible-pull register: ansible_pull_exec + +- name: General | Facts | Gather | Locate zsh + shell: which zsh + register: zsh_exec diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index 27ae856..fda4ad5 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -10,6 +10,15 @@ ## 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 user: name: ling @@ -17,7 +26,7 @@ groups: - sudo append: yes - shell: "{{ bash_exec.stdout }}" + shell: "{{ ling_shell }}" create_home: yes generate_ssh_key: yes register: user_ling @@ -93,4 +102,4 @@ create: yes backup: yes ignore_errors: yes - when: user_root.home != "" \ No newline at end of file + when: user_root.home != ""