update packages in case of tasks is defined

This commit is contained in:
Sergey Bubnov 2018-11-07 17:27:30 +04:00
parent 177c0f444c
commit 529e09583b

View File

@ -33,9 +33,15 @@
shell: apt-get update shell: apt-get update
- name: include additional apt repos from tasks - name: include additional apt repos from tasks
template: block:
src: "apt.list.tasks.j2" - name: include additional apt repos from tasks
dest: "/etc/apt/sources.list.d/tasks.list" template:
src: "apt.list.tasks.j2"
dest: "/etc/apt/sources.list.d/tasks.list"
- name: update with tasks repos
shell: |
apt-get update
apt-get dist-upgrade
when: stack.apt_sources_from_tasks is defined when: stack.apt_sources_from_tasks is defined
- name: allow apt downgrade packages - name: allow apt downgrade packages