From d7b3463a79a50dc81d28d530c5212a1749efbb15 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sat, 24 Jan 2026 00:33:50 +0100 Subject: Fix ansible 2.20.1 deprecation warning about ansible_vars --- roles/nginx/meta/argument_specs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/nginx/meta') diff --git a/roles/nginx/meta/argument_specs.yml b/roles/nginx/meta/argument_specs.yml index 18b8de89..2964c3a8 100644 --- a/roles/nginx/meta/argument_specs.yml +++ b/roles/nginx/meta/argument_specs.yml @@ -7,7 +7,7 @@ argument_specs: nginx_server_name: type: "str" description: "The server name for nginx configuration" - default: "{{ ansible_hostname }}.local" + default: "{{ ansible_facts['hostname'] }}.local" nginx_worker_processes: type: "int" description: "Number of nginx worker processes" -- cgit v1.2.3