14 lines
354 B
YAML
14 lines
354 B
YAML
---
|
|
|
|
- name: SSHD configuration
|
|
ansible.builtin.lineinfile:
|
|
path: "/etc/ssh/sshd_config"
|
|
regex: "^(# *)?{{ item.option }}"
|
|
line: "{{ item.option }} {{ item.value }}"
|
|
loop: "{{ ssh_config }}"
|
|
|
|
- name: Insert/Update user configuration blocl
|
|
ansible.builtin.blockinfile:
|
|
path: "/etc/ssh/sshd_config"
|
|
block: "{{ ssh_raw_config }}"
|