From f9eeccb3e707abc9a8b577e3e577b2bd39a27966 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 2 Feb 2021 20:51:28 -0600 Subject: [PATCH] Use variable for bash location. Different on FreeBSD 11 (userspace) vs 12 (system)? --- tasks/general/acct_mgmt/users.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index f6b9eea..feda1a5 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -8,6 +8,10 @@ comment: Ansible system: yes +# Get facts +- name: Locate bash + shell: which bash + register: bash_exec # Superuser - name: Create User Hyperling @@ -17,7 +21,7 @@ groups: - sudo append: yes - shell: /bin/bash + shell: "{{ bash_exec }}" create_home: yes generate_ssh_key: yes #password: "{{ ling_passwd }}"