Browse Source

move to general check in container

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

+ 3
- 1
roles/lxc_guest/tasks/main.yaml View File

@ -52,8 +52,10 @@
- name: Check if host certificate exists
container_certificate_exists:
container_file_exists:
name: "{{ vm_name }}"
path: "/etc/ssh/ssh_host_ed25519_key-cert.pub"
register: host_certificate_exists
- name: check if cert key exist
shell: lxc-attach -n {{ vm_name }} --clear-env -e -- bash -c "ls /etc/ssh/ssh_host_ed25519_key-cert.pub"


Loading…
Cancel
Save