From 39abe68ae8c46d5347c11b90020dc769beff9c83 Mon Sep 17 00:00:00 2001 From: Hiromasa Ihara Date: Thu, 12 Oct 2023 23:55:22 +0900 Subject: [PATCH] fix: force become: false in zabbix-agent role api calling --- roles/zabbix_agent/tasks/api.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/zabbix_agent/tasks/api.yml b/roles/zabbix_agent/tasks/api.yml index 4de342645..06c4b46a3 100644 --- a/roles/zabbix_agent/tasks/api.yml +++ b/roles/zabbix_agent/tasks/api.yml @@ -8,6 +8,7 @@ register: zabbix_api_hostgroup_created until: zabbix_api_hostgroup_created is succeeded delegate_to: "{{ zabbix_api_server_host }}" + become: false tags: - api @@ -41,6 +42,7 @@ register: zabbix_api_host_created until: zabbix_api_host_created is succeeded delegate_to: "{{ zabbix_api_server_host }}" + become: false changed_when: false tags: - api @@ -75,6 +77,7 @@ register: zabbix_api_host_created until: zabbix_api_host_created is succeeded delegate_to: "{{ zabbix_api_server_host }}" + become: false changed_when: false tags: - api @@ -92,5 +95,6 @@ register: zabbix_api_hostmarcro_created until: zabbix_api_hostmarcro_created is succeeded delegate_to: "{{ zabbix_api_server_host }}" + become: false tags: - api