3
0
forked from jakub/ansible
This commit is contained in:
martin.fencl
2025-11-26 14:14:50 +01:00
parent 3228778db9
commit 690d03e470

View File

@@ -93,8 +93,7 @@
# ------------------------- # -------------------------
# Backup phase # Backup phase
# ------------------------- # -------------------------
- name: Nextcloud | Run backup commands on VM (via SSH) # run plain commands via SSH
- name: Nextcloud | Run backup commands on VM (via SSH)
ansible.builtin.command: ansible.builtin.command:
argv: argv:
- sshpass - sshpass
@@ -105,8 +104,6 @@
- -o - -o
- ConnectTimeout=15 - ConnectTimeout=15
- "{{ vm_user }}@{{ vm_ip }}" - "{{ vm_user }}@{{ vm_ip }}"
- bash
- -lc
- "{{ ('sudo ' if use_sudo else '') + item }}" - "{{ ('sudo ' if use_sudo else '') + item }}"
environment: environment:
SSHPASS: "{{ vm_pass }}" SSHPASS: "{{ vm_pass }}"