style: make ansible-lint happier

This commit is contained in:
VC
2024-07-05 11:53:33 +02:00
parent b228498a9b
commit f1cd507720
21 changed files with 101 additions and 74 deletions

View File

@@ -1,26 +1,27 @@
---
- name: ssh configuration file
template:
- name: SSH configuration file
ansible.builtin.template:
src: sshd_config.j2
dest: /etc/ssh/sshd_config
mode: 0644
notify:
- restart sshd
- Restart sshd
- name: ssh keys home
authorized_key:
- name: SSH keys home
ansible.posix.authorized_key:
user: root
state: present
key: "{{ lookup('file', 'ssh/home.id_rsa.pub') }}"
- name: ssh keys work
authorized_key:
- name: SSH keys work
ansible.posix.authorized_key:
user: root
state: present
key: "{{ lookup('file', 'ssh/work.id_rsa.pub') }}"
- name: ssh keys stef
authorized_key:
- name: SSH keys stef
ansible.posix.authorized_key:
user: root
state: present
key: "{{ lookup('file', 'ssh/stefofficiel.id_rsa.pub') }}"