Add LXC initial SSH setup

This commit is contained in:
Daniel A. Maierhofer
2018-03-17 16:25:24 +01:00
parent 3150d171be
commit 6e4edfb5a8
4 changed files with 24 additions and 4 deletions

View File

@@ -16,3 +16,8 @@
- name: restart smartd
service: name=smartd state=restarted
- name: lxc - create authorized_keys file in VM for root
listen: lxc - inital ssh authorized_keys
copy: remote_src=yes src=/root/.ssh/authorized_keys dest="/var/lib/lxc/lxc-{{ item.name }}-{{ item.revision }}/rootfs/root/.ssh/authorized_keys" owner=root group=root mode=0600
with_items: "{{ lxc.containers }}"