forked from jakub/ansible
Refactor portainer configuration: standardize ansible_password, simplify SSH arguments, and clean up inventory group naming.
This commit is contained in:
@@ -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"
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user