3
0
forked from jakub/ansible

Refactor portainer configuration: standardize ansible_password, simplify SSH arguments, and clean up inventory group naming.

This commit is contained in:
fencl
2025-10-03 15:16:44 +02:00
parent 2643526326
commit 5df4686c00
3 changed files with 4 additions and 13 deletions

View File

@@ -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"
ansible_ssh_common_args: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -J root@192.168.69.2"

View File

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

View File

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