xoxys.update/tasks/debian.yml
Robert Kaussow 7bd4c50f8e
All checks were successful
continuous-integration/drone/push Build is passing
add option for excludes
2020-02-22 21:26:42 +01:00

21 lines
426 B
YAML

---
- block:
- name: Add package lock
dpkg_selections:
name: python
selection: hold
loop: "{{ update_packages_exclude }}"
- name: Upgrade packages
apt:
update_cache: yes
upgrade: dist
- name: Remove package lock
dpkg_selections:
name: python
selection: install
loop: "{{ update_packages_exclude }}"
become: True
become_user: root