From a905876c2a934fe79ddeb54cc5c849eb92e614ea Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 19 Nov 2024 14:45:36 +0100 Subject: [PATCH] bitwarden --- playbooks/00_install_zabbix_agent.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/playbooks/00_install_zabbix_agent.yml b/playbooks/00_install_zabbix_agent.yml index 5db702d..31eeaf4 100644 --- a/playbooks/00_install_zabbix_agent.yml +++ b/playbooks/00_install_zabbix_agent.yml @@ -122,6 +122,13 @@ regexp: "^HostMetadata=.*" insertafter: '^# HostMetadata=' line: "HostMetadata=linux;jaydee" + - name: Reconfigure zabbix-agent2 hostname + ansible.builtin.lineinfile: + path: "{{ zabbix_agent_cfg }}" + regexp: "^HostMetadata=.*" + insertafter: '^# HostMetadata=' + line: "HostMetadata=server;jaydee" + when: inventory_hostname == 'nas.home.lan' or inventory_hostname == 'm-server.home.lan' - name: Add the user 'to group video ansible.builtin.user: