aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/roles/apt/tasks/main.yml
blob: 1d07a7f49c8d2fb86cb3d9705bfc820c9c587956 (plain) (tree)
1
2
3
4
5
6
7





                             
                








                                      
                


                                      






                                    
- name: Upgrade packages
  become: true
  ansible.builtin.apt:
    install_recommends: false
    update_cache: true
    upgrade: dist
  notify: Reboot

- name: Reboot if necessary
  ansible.builtin.meta: flush_handlers

- name: Clean up dependencies
  become: true
  ansible.builtin.apt:
    autoremove: true
    purge: true
  notify: Reboot

- name: Reboot if necessary
  ansible.builtin.meta: flush_handlers

- name: Install extra packages
  become: true
  ansible.builtin.apt:
    install_recommends: false
    name: '{{ apt_extra_packages }}'
    state: present