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