Fixing DEPRECATION WARNING

TASK [rade333.apache : Add htpasswd configuration.] ****************************
[DEPRECATION WARNING]: Using bare variables is deprecated. Update your
playbooks so that the environment value uses the full variable syntax
('{{apache_htpasswd}}').
This feature will be removed in a future release.
Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.
This commit is contained in:
Marko Korhonen 2016-06-12 08:03:07 +03:00 committed by GitHub
parent 05a8674169
commit c6dfb88edc

View file

@ -30,7 +30,7 @@
- name: Add htpasswd configuration.
htpasswd: path={{ item.file }} name={{ item.username }} password={{ item.password }} state=present
with_items: apache_htpasswd
with_items: "{{ apache_htpasswd }}"
when: apache_htpasswd
- name: Add apache vhosts configuration.