Browse Source

use module container_file_write in lxc_guest

update_ca_key
Edoardo Putti 8 years ago
parent
commit
2797c30998
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      roles/lxc_guest/tasks/main.yaml

+ 5
- 2
roles/lxc_guest/tasks/main.yaml View File

@ -129,8 +129,11 @@
var: request_output
verbosity: 2
- name: set cert key
shell: lxc-attach -n {{ vm_name }} --clear-env -e -- bash -c "echo '{{ cert_key.result }}' > /etc/ssh/ssh_host_ed25519_key-cert.pub"
- name: Write certificate to container
container_file_write:
name: "{{ vm_name }}"
path: "/etc/ssh/ssh_host_ed25519_key-cert.pub"
text: "{{ cert_key.result }}"
register: set_pub_key
when: "cert_key_existance.rc != 0"


Loading…
Cancel
Save