Support fixed mirror
Some checks failed
ci/woodpecker/manual/lint Pipeline was successful
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/manual/test Pipeline failed
ci/woodpecker/push/test unknown status

This commit is contained in:
2023-10-11 12:48:46 +13:00
parent a59de1cc0f
commit 549dbd568f
9 changed files with 128 additions and 4 deletions

View File

@@ -0,0 +1,24 @@
---
- 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