Use variable for bash location. Different on FreeBSD 11 (userspace) vs 12 (system)?

This commit is contained in:
Hyperling 2021-02-02 20:51:28 -06:00
parent 6633e62c77
commit f9eeccb3e7

View File

@ -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 }}"