diff --git a/ansible/playbook.yaml b/ansible/playbook.yaml index b39e5b7..38b60cc 100644 --- a/ansible/playbook.yaml +++ b/ansible/playbook.yaml @@ -1,4 +1,4 @@ --- - name: Deploy common services hosts: all - roles: [docker] + roles: [common,docker] diff --git a/ansible/roles/common/tasks/main.yaml b/ansible/roles/common/tasks/main.yaml new file mode 100644 index 0000000..2a89afd --- /dev/null +++ b/ansible/roles/common/tasks/main.yaml @@ -0,0 +1,6 @@ +--- +- name: Update all packages to their latest version + ansible.builtin.apt: + name: "*" + state: latest + update_cache: yes