This commit is contained in:
Morten Olsen
2024-12-05 23:28:18 +01:00
parent 343d7066aa
commit dce2196c32
10 changed files with 334 additions and 7 deletions

View File

@@ -40,3 +40,21 @@
loop_control:
label: "{{ item.path }}"
when: item.state == 'file'
- name: Install ssh server
when: not mac_os
tags:
- install
ansible.builtin.package:
name:
- openssh-server
- name: Disable password authentication for root
tags:
- config
when: not mac_os
lineinfile:
path: /etc/ssh/sshd_config
state: present
regexp: "^#?PermitRootLogin"
line: "PermitRootLogin prohibit-password"