style: make ansible-lint happier
This commit is contained in:
@@ -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') }}"
|
||||
|
Reference in New Issue
Block a user