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:
@@ -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"
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user