Browse Source

update apt cache in lxc_guest

master
Andrea Cimbalo 7 years ago
parent
commit
41a144f0fb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      roles/lxc_guest/tasks/main.yaml

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

@ -79,7 +79,7 @@
notify: restart container
- name: install packages
shell: lxc-attach -n {{ vm_name }} --clear-env -e -- bash -c "apt-get install python ssh -y"
shell: lxc-attach -n {{ vm_name }} --clear-env -e -- bash -c "apt-get update && apt-get install python ssh -y"
register: install_packages
changed_when: "install_packages.stdout.find('0 newly installed') == -1"
notify: restart container


Loading…
Cancel
Save