Well, first push

This commit is contained in:
git
2023-04-19 17:02:43 +02:00
parent 825b252c9b
commit ee38cf8458
72 changed files with 1195 additions and 3 deletions

View File

@@ -0,0 +1,4 @@
---
# tasks file for service_start
- name: SSH server
ansible.builtin.include_tasks: ssh_server.yml

View File

@@ -0,0 +1,18 @@
---
- name: replace line
become: true
lineinfile:
path: /etc/ssh/sshd_config
regexp: '^(.*)#PasswordAuthentication yes(.*)$'
line: 'PasswordAuthentication no'
backrefs: yes
- name: Start and enable sshd
become: true
ansible.builtin.service:
name: sshd
state: started
enabled: true
when: host != 'ntb'