fix loops

This commit is contained in:
Antonio J. Delgado 2022-10-21 10:05:06 +03:00
parent 303c624b0d
commit 1b025437b7

View file

@ -5,7 +5,7 @@
src: templates/apache_vhost.j2
mode: 0644
backup: yes
loop: vhosts
loop: "{{ vhosts }}"
- name: Create auth user file
htpasswd:
@ -21,5 +21,5 @@
state: link
src: "/etc/apache2/sites-available/25-{{ item.vhost_name }}.conf"
path: "/etc/apache2/sites-enabled/25-{{ item.vhost_name }}.conf"
loop: vhosts
loop: "{{ vhosts }}"
notify: Restart Apache2