Use bash_exec fact for more.
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
- name: SSH Key | Root | Create
|
||||
shell: ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa <<< n
|
||||
args:
|
||||
executable: /bin/bash
|
||||
executable: "{{ bash_exec.stdout }}"
|
||||
ignore_errors: yes
|
||||
|
||||
- name: SSH Key | Root | Copy to 1337
|
||||
|
@ -8,10 +8,6 @@
|
||||
comment: Ansible
|
||||
system: yes
|
||||
|
||||
# Get facts
|
||||
- name: Locate bash
|
||||
shell: which bash
|
||||
register: bash_exec
|
||||
|
||||
# Superuser
|
||||
- name: Create User Hyperling
|
||||
|
Reference in New Issue
Block a user