aboutsummaryrefslogblamecommitdiffstats
path: root/roles/update/tasks/main.yml
blob: 0c10aa77b8de5be06010c28ab1ab8a3db508a608 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                   
                                        
              

                                          
               
                                          





                                         
---

- name: apply system update
  ansible.builtin.command: syspatch
  register: update__result_system_update
  failed_when:
    - update__result_system_update.rc > 0
    - update__result_system_update.rc != 2
  changed_when:
    - update__result_system_update.rc == 0
  when: ansible_distribution == "OpenBSD"

- name: apply package update
  ansible.builtin.package:
    name: "*"
    state: latest
remember that computers suck.