diff --git a/host_vars/portainer.yml b/host_vars/portainer.yml index 121bf8d..0957e46 100644 --- a/host_vars/portainer.yml +++ b/host_vars/portainer.yml @@ -1,3 +1,13 @@ ansible_user: howard -ansible_password: Papadopolus0 -ansible_ssh_common_args: "-o ProxyJump=root@192.168.69.2" \ No newline at end of file +ansible_password: "Papadopolus0" # vezme secret ze Semaphoru + +# 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 diff --git a/inv_linuxes_portainer b/inv_linuxes_portainer index 5a42354..64bec1e 100644 --- a/inv_linuxes_portainer +++ b/inv_linuxes_portainer @@ -1,5 +1,7 @@ +# Proxmox (jump host) [linux_servers] proxmox ansible_host=192.168.69.2 -[portainer] +# 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 ae0e29d..b7c6d75 100644 --- a/nextcloud/check_stack_nextcloud.yml +++ b/nextcloud/check_stack_nextcloud.yml @@ -1,7 +1,6 @@ --- -# Play: Run Nextcloud housekeeping commands inside the container - name: Nextcloud maintenance (cron, app updates, repair, status, health check) - hosts: portainer + hosts: nextcloud_host gather_facts: false vars: nextcloud_container: nextcloud