Use bash_exec fact for more.
This commit is contained in:
parent
4661e114eb
commit
6f2361832a
6
facts/general/gather.yml
Normal file
6
facts/general/gather.yml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
# Facts that must be gathered by tasks.
|
||||
|
||||
- name: Gather | Locate BASH
|
||||
shell: which bash
|
||||
register: bash_exec
|
@ -15,8 +15,8 @@
|
||||
|
||||
tasks:
|
||||
- include: tasks/general/software/packages.yml
|
||||
- include: tasks/general/software/harden.yml
|
||||
ignore_errors: yes
|
||||
|
||||
- include: facts/general/gather.yml
|
||||
|
||||
- include: tasks/general/acct_mgmt/groups.yml
|
||||
- include: tasks/general/acct_mgmt/users.yml
|
||||
@ -26,6 +26,9 @@
|
||||
|
||||
- include: tasks/general/cron/ansible.yml
|
||||
|
||||
- include: tasks/general/software/harden.yml
|
||||
ignore_errors: yes
|
||||
|
||||
|
||||
# Workstations
|
||||
- name: UI Setup
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user