diff --git a/playbook-immich.yml b/playbook-immich.yml index c0bfa5c..9dc40d4 100644 --- a/playbook-immich.yml +++ b/playbook-immich.yml @@ -1,23 +1,13 @@ --- -- name: Update docker servers - hosts: dockerservers +- name: Update immich application + hosts: immich remote_user: root tasks: - - name: Update all apt packages - apt: state=latest force_apt_get=yes + - name: Update immich-app docker image + ansible.builtin.shell: + args: + cmd: docker-compose pull && docker-compose up -d + chdir: /opt/immich-app/ -- name: Update db servers - hosts: databases - remote_user: root - tasks: - - name: Ensure postgresql is at the latest version - ansible.builtin.yum: - name: postgresql - state: latest - - - name: Ensure that postgresql is started - ansible.builtin.service: - name: postgresql - state: started