12 lines
369 B
YAML
12 lines
369 B
YAML
---
|
|
- name: "Install sshd in container"
|
|
delegate_to: "{{ hostvars[inventory_hostname].lxd_host }}"
|
|
shell: >-
|
|
lxc exec {{ inventory_hostname }} --
|
|
apt-get install -y openssh-server
|
|
|
|
- name: "Start sshd in container"
|
|
delegate_to: "{{ hostvars[inventory_hostname].lxd_host }}"
|
|
shell: >-
|
|
lxc exec {{ inventory_hostname }} -- systemctl restart ssh
|