diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..c87c306 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,5 @@ +# .ansible-lint +skip_list: + - command-instead-of-shell # Use shell only when shell functionality is required + - no-changed-when # Commands should not change things if nothing needs doing + - package-latest # Package installs should not use latest diff --git a/tasks/update-packages.yml b/tasks/update-packages.yml index 1d99c9a..711891d 100644 --- a/tasks/update-packages.yml +++ b/tasks/update-packages.yml @@ -1,4 +1,9 @@ - name: Update packages installed through dnf dnf: name: "*" - state: present + state: latest + +- name: Update flatpaks + shell: + cmd: flatpak update --noninteractive + become: true diff --git a/update.yml b/update.yml new file mode 100644 index 0000000..01d3021 --- /dev/null +++ b/update.yml @@ -0,0 +1,5 @@ +--- +- hosts: all + become: yes + tasks: + - import_tasks: tasks/update-packages.yml