From dcbfc405eb4924fc70b89355828c3d55adef2db1 Mon Sep 17 00:00:00 2001 From: David Kirwan Date: Wed, 14 Jun 2023 12:13:58 +0100 Subject: [PATCH] zabbix: replace template task with copy Signed-off-by: David Kirwan --- .../{templates => files}/php-fpm_www.conf.j2 | 0 .../{templates => files}/php-fpm_zabbix.conf.j2 | 0 roles/zabbix/zabbix_server/tasks/install.yml | 8 ++++---- 3 files changed, 4 insertions(+), 4 deletions(-) rename roles/zabbix/zabbix_server/{templates => files}/php-fpm_www.conf.j2 (100%) rename roles/zabbix/zabbix_server/{templates => files}/php-fpm_zabbix.conf.j2 (100%) diff --git a/roles/zabbix/zabbix_server/templates/php-fpm_www.conf.j2 b/roles/zabbix/zabbix_server/files/php-fpm_www.conf.j2 similarity index 100% rename from roles/zabbix/zabbix_server/templates/php-fpm_www.conf.j2 rename to roles/zabbix/zabbix_server/files/php-fpm_www.conf.j2 diff --git a/roles/zabbix/zabbix_server/templates/php-fpm_zabbix.conf.j2 b/roles/zabbix/zabbix_server/files/php-fpm_zabbix.conf.j2 similarity index 100% rename from roles/zabbix/zabbix_server/templates/php-fpm_zabbix.conf.j2 rename to roles/zabbix/zabbix_server/files/php-fpm_zabbix.conf.j2 diff --git a/roles/zabbix/zabbix_server/tasks/install.yml b/roles/zabbix/zabbix_server/tasks/install.yml index 0995e15314..ecf7ee616c 100644 --- a/roles/zabbix/zabbix_server/tasks/install.yml +++ b/roles/zabbix/zabbix_server/tasks/install.yml @@ -84,8 +84,8 @@ - zabbix-configuration - name: Configure /etc/php-fpm.d/www.conf file - ansible.builtin.template: - src: php-fpm_www.conf.j2 + ansible.builtin.copy: + src: php-fpm_www.conf dest: /etc/php-fpm.d/www.conf mode: 0600 owner: nginx @@ -94,8 +94,8 @@ - zabbix-configuration - name: Configure nginx conf.d/zabbix.conf - ansible.builtin.template: - src: php-fpm_zabbix.conf.j2 + ansible.builtin.copy: + src: php-fpm_zabbix.conf dest: /etc/php-fpm.d/zabbix.conf mode: 0600 owner: nginx