3
0
forked from jakub/ansible

Refactor portainer configuration: update ansible_password for consistency, enhance SSH settings, and rename host group in inventory for clarity.

This commit is contained in:
fencl
2025-10-03 14:55:51 +02:00
parent 1591c2e787
commit 2643526326
3 changed files with 16 additions and 5 deletions

View File

@@ -1,3 +1,13 @@
ansible_user: howard
ansible_password: Papadopolus0
ansible_ssh_common_args: "-o ProxyJump=root@192.168.69.2"
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"

View File

@@ -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

View File

@@ -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