From 6d03c8e29d8bf19127c6eea68a30372aef0b5489 Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 19 Nov 2024 15:33:44 +0100 Subject: [PATCH] bitwarden --- playbooks/00_install_zabbix_agent.yml | 3 ++- playbooks/00_set_hostname.yml | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 playbooks/00_set_hostname.yml diff --git a/playbooks/00_install_zabbix_agent.yml b/playbooks/00_install_zabbix_agent.yml index 821ffb7..0805c17 100644 --- a/playbooks/00_install_zabbix_agent.yml +++ b/playbooks/00_install_zabbix_agent.yml @@ -72,8 +72,9 @@ - zabbix-agent2 - zabbix-agent2-plugin-mongodb - zabbix-agent2-plugin-postgresql - - zabbix-agent2-plugin-mssql + - zabbix-agent2-plugin-mysql update_cache: yes + ignore_errors: true when: inventory_hostname != 'nas.home.lan' - name: Reconfigure zabbix agent Server diff --git a/playbooks/00_set_hostname.yml b/playbooks/00_set_hostname.yml new file mode 100644 index 0000000..da363a0 --- /dev/null +++ b/playbooks/00_set_hostname.yml @@ -0,0 +1,17 @@ +- hosts: datacenter + name: Set hostname + become: true + tasks: + - name: Modify hostyname + ansible.builtin.hostname: + name: "{{ inventory_hostname }}" + use: systemd + - name: Print all available facts + ansible.builtin.debug: + var: ansible_facts.architecture + - name: Print all available facts + ansible.builtin.debug: + var: "{{ ansible_distribution }}" + - name: Print all available facts + ansible.builtin.debug: + var: ansible_facts.distribution_version \ No newline at end of file