You've already forked ansible-role-auth-duo
25 lines
511 B
YAML
25 lines
511 B
YAML
---
|
|
- name: Prepare
|
|
hosts: all
|
|
tasks:
|
|
- name: Ensure Pre-Requisites are installed
|
|
yum:
|
|
name: >
|
|
openssh-server, openssh-clients,
|
|
sshpass, passwd
|
|
state: installed
|
|
|
|
- name: Ensure sshd is running
|
|
service:
|
|
name: sshd
|
|
state: started
|
|
enabled: true
|
|
|
|
- name: Ensure nologin files are absent
|
|
file:
|
|
path: "{{ item }}"
|
|
state: absent
|
|
with_items:
|
|
- /etc/nologin
|
|
- /var/run/nologin
|