From 52803c4f24d9886d129c8dea59c81ca320e6da13 Mon Sep 17 00:00:00 2001 From: Ng Chin Kiong Date: Tue, 6 Sep 2016 05:35:58 +0800 Subject: [PATCH] Using bare variables is deprecated --- tasks/sites.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/sites.yml b/tasks/sites.yml index 1ed452e..551ec16 100644 --- a/tasks/sites.yml +++ b/tasks/sites.yml @@ -3,16 +3,16 @@ file: path={{nginx_drupal_config_path}}/sites-enabled state=directory - name: "Create available sites configuration files" template: src=sites-available/drupal-site.j2 dest={{nginx_drupal_config_path}}/sites-available/{{item.file_name}}.conf - with_items: nginx_drupal_sites + with_items: "{{ nginx_drupal_sites }}" - name: "Create enabled sites symlinks" file: path={{nginx_drupal_config_path}}/sites-enabled/{{item.file_name}}.conf src={{nginx_drupal_config_path}}/sites-available/{{item.file_name}}.conf state=link - with_items: nginx_drupal_sites + with_items: "{{ nginx_drupal_sites }}" when: item.enabled|default(True) notify: - validate nginx-drupal configuration - name: "Remove disabled sites symlinks" file: path={{nginx_drupal_config_path}}/sites-enabled/{{item.file_name}}.conf state=absent - with_items: nginx_drupal_sites + with_items: "{{ nginx_drupal_sites }}" when: item.enabled|default(True) == False notify: - - validate nginx-drupal configuration \ No newline at end of file + - validate nginx-drupal configuration