Files
ansible-role-auth-duo/molecule/default/prepare.yml

31 lines
641 B
YAML
Raw Normal View History

2020-04-01 11:20:57 +13:00
---
- name: Prepare
hosts: all
tasks:
2023-10-11 12:48:46 +13:00
- name: Ensure Pre-Requisites are installed
2020-04-01 11:20:57 +13:00
yum:
2023-10-11 12:48:46 +13:00
name: >
openssh-server, openssh-clients,
2024-12-30 08:25:21 +13:00
sshpass, passwd, rsyslog
2020-04-01 11:20:57 +13:00
state: installed
2020-04-02 09:37:46 +13:00
2023-10-10 23:24:47 +13:00
- name: Ensure sshd is running
2020-04-01 11:20:57 +13:00
service:
name: sshd
state: started
2020-04-02 09:37:46 +13:00
enabled: true
2024-12-30 08:25:21 +13:00
- name: Ensure rsyslog is running
service:
name: rsyslog
state: started
enabled: true
2023-10-10 23:24:47 +13:00
- name: Ensure nologin files are absent
2020-04-02 09:37:46 +13:00
file:
path: "{{ item }}"
state: absent
with_items:
- /etc/nologin
2023-10-10 23:24:47 +13:00
- /var/run/nologin