diff --git a/host_vars/portainer.yml b/host_vars/portainer.yml index 0957e46..b5f9b07 100644 --- a/host_vars/portainer.yml +++ b/host_vars/portainer.yml @@ -1,13 +1,6 @@ ansible_user: howard -ansible_password: "Papadopolus0" # vezme secret ze Semaphoru +ansible_password: "Papadopolus0" -# Force native ssh + password, with Proxy via Proxmox. ansible_connection: ssh ansible_port: 22 -ansible_ssh_common_args: >- - -o StrictHostKeyChecking=no - -o UserKnownHostsFile=/dev/null - -o ProxyCommand="ssh -q - -o StrictHostKeyChecking=no - -o UserKnownHostsFile=/dev/null - root@192.168.69.2 -W %h:%p" \ No newline at end of file +ansible_ssh_common_args: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -J root@192.168.69.2" \ No newline at end of file diff --git a/inv_linuxes_portainer b/inv_linuxes_portainer index 64bec1e..c655062 100644 --- a/inv_linuxes_portainer +++ b/inv_linuxes_portainer @@ -1,7 +1,5 @@ -# Proxmox (jump host) [linux_servers] proxmox ansible_host=192.168.69.2 -# Portainer/Nextcloud host (přejmenovaná skupina) [nextcloud_host] portainer ansible_host=192.168.69.253 \ No newline at end of file diff --git a/nextcloud/check_stack_nextcloud.yml b/nextcloud/check_stack_nextcloud.yml index b7c6d75..c867448 100644 --- a/nextcloud/check_stack_nextcloud.yml +++ b/nextcloud/check_stack_nextcloud.yml @@ -8,9 +8,9 @@ - name: Ensure docker CLI is available ansible.builtin.command: argv: ["/usr/bin/env", "bash", "-lc", "command -v docker"] + register: docker_check changed_when: false - failed_when: result.rc != 0 - register: result + failed_when: docker_check.rc != 0 # English: Hard fail if docker is not present. - name: Verify Nextcloud container is running