Browse Source

use vm_ssh_certificate_exist instead of old variable

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

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

@ -138,7 +138,8 @@
path: "/etc/ssh/ssh_host_ed25519_key-cert.pub"
text: "{{ cert_key.result }}"
register: set_pub_key
when: "cert_key_existance.rc != 0"
when: "not vm_ssh_certificate_exists.exists"
- name: update container network configuration
shell: lxc-attach -n {{ vm_name }} --clear-env -e -- bash -c "grep -F 'iface eth0 inet manual' /etc/network/interfaces || sed -i 's/iface eth0 inet dhcp/iface eth0 inet manual/' /etc/network/interfaces"


Loading…
Cancel
Save