From 016e9fb1880a56f887fe65c4cb3ff206328e586f Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 9 Jul 2024 00:50:40 +0200 Subject: [PATCH] upt playbook --- hosts.yml | 50 +++++++++++++++++++++++++++++++++- playbooks/install_mqtt_srv.yml | 2 +- 2 files changed, 50 insertions(+), 2 deletions(-) diff --git a/hosts.yml b/hosts.yml index 740e79f..0e3ead3 100644 --- a/hosts.yml +++ b/hosts.yml @@ -18,6 +18,7 @@ datacenter: ansible_become_password: lacijaydee ssh_args: "-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" ansible_ssh_common_args: "-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" + localhost1: hosts: localhost @@ -27,6 +28,7 @@ datacenter: hosts: 192.168.77.12: vars: + jaydee_install_mqtt_srv: true ansible_python_interpreter: auto_silent ansible_ssh_user: jd ansible_ssh_pass: q @@ -82,7 +84,53 @@ datacenter: ansible_port: 5985 ansible_winrm_server_cert_validation: ignore ansible_winrm_kerberos_delegation: true\ - + mqtt_srv: + children: + router: + hosts: + 192.168.77.1 + vars: + ansible_python_interpreter: /opt/bin/python + ansible_user: admin + ansible_pass: l4c1!j4yd33?Du5lo + ansible_ssh_user: admin + ansible_ssh_pass: l4c1!j4yd33?Du5lo + raspberrypi5: + hosts: + 192.168.77.238 + vars: + ansible_python_interpreter: /usr/bin/python + ansible_ssh_user: jd + ansible_ssh_pass: q + ansible_become_user: root + ansible_become_password: l4c1j4yd33Du5lo + nas: + hosts: + 192.168.77.106: + vars: + ansible_ssh_user: admin + ansible_ssh_pass: l4c1!j4yd33?Du5lo + become_method: su + become_user: admin + # ansible_user: admin + # ansible_pass: l4c1!j4yd33?Du5lo1 + ansible_python_interpreter: /share/ZFS530_DATA/.qpkg/QPython312/bin/python3 + fog: + hosts: + 192.168.77.108: + vars: + ansible_ssh_user: jd + ansible_ssh_pass: q + ansible_become_user: root + ansible_become_password: q + zabbix: + hosts: + 192.168.77.216: + vars: + ansible_ssh_user: jd + ansible_ssh_pass: q + ansible_become_user: root + ansible_become_password: q containers: children: router: diff --git a/playbooks/install_mqtt_srv.yml b/playbooks/install_mqtt_srv.yml index 09e0c62..1cfc487 100644 --- a/playbooks/install_mqtt_srv.yml +++ b/playbooks/install_mqtt_srv.yml @@ -1,6 +1,6 @@ - hosts: datacenter name: Install mqtt_srv - ignore_unreachable: false + ignore_unreachable: true tasks: - name: Install python3-pip ansible.builtin.apt: