dm4/roles/ssh/tasks/ssh.yml

9 lines
206 B
YAML

---
- name: SSHD configuration
ansible.builtin.linefile:
path: "/etc/ssh/sshd_config"
regex: "^(# *)?{{ item.option }}"
line: "{{ item.option }} {{ item.value }}"
loop: "{{ ssh_config }}"