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

23 lines
469 B
YAML
Raw Normal View History

2020-04-01 11:20:57 +13:00
---
- name: Prepare
hosts: all
tasks:
2023-10-10 23:24:47 +13:00
- name: Ensure openssh installed
2020-04-01 11:20:57 +13:00
yum:
2020-04-02 09:37:46 +13:00
name: openssh-server, openssh-clients, sshpass
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
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