23 lines
638 B
YAML
23 lines
638 B
YAML
- hosts: localhost
|
|
tasks:
|
|
- name: "openssh/config : Populate sshd_config"
|
|
template:
|
|
src: files/openssh_sshd_config
|
|
dest: /etc/ssh/sshd_config
|
|
mode: "0644"
|
|
owner: root
|
|
group: root
|
|
- name: "openssh/config : Configure root .ssh directory"
|
|
file:
|
|
state: directory
|
|
path: /root/.ssh
|
|
mode: "0755"
|
|
owner: root
|
|
group: root
|
|
- name: "openssh/config : Configure root authorized_keys"
|
|
template:
|
|
src: files/openssh_authorized_keys
|
|
dest: /root/.ssh/authorized_keys
|
|
mode: "0644"
|
|
owner: root
|
|
group: root
|