3
0
forked from jakub/ansible
This commit is contained in:
martin.fencl
2025-12-10 12:21:09 +01:00
parent 21ce9478f4
commit cf2507bdf6

View File

@@ -57,6 +57,28 @@
state: present
update_cache: yes
- name: Immich | Check compose directory exists on VM
ansible.builtin.command:
argv:
- sshpass
- -e
- ssh
- -o
- StrictHostKeyChecking=no
- -o
- ConnectTimeout=15
- "{{ vm_user }}@{{ vm_ip }}"
- bash
- -lc
- "test -d {{ immich_compose_dir }}"
environment:
SSHPASS: "{{ vm_pass }}"
register: immich_dir
changed_when: false
failed_when: immich_dir.rc != 0
- name: Run Immich update commands on VM (via SSH) # use SSHPASS env, hide item value
ansible.builtin.command:
argv: