Update some bare variables in with_items loops to use Ansible 2.0 syntax

See: https://docs.ansible.com/ansible/porting_guide_2.0.html

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
2016-03-11 18:53:07 +02:00
parent 869d7f6c7e
commit 6a3b8f0918
3 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@
- name: Configure https vhosts
template: src=vhost.conf.j2 dest={{ nginx_confd_path }}/{{ item.domain_name }}.conf mode=0644 owner=root group=root
with_items: nginx_vhosts
with_items: "{{ nginx_vhosts }}"
notify:
- reload nginx
@ -18,18 +18,18 @@
- name: Create vhost document roots
file: path={{ nginx_root_prefix }}/{{ item.domain_name }} state=directory mode=0755 owner=nginx group=nginx
with_items: nginx_vhosts
with_items: "{{ nginx_vhosts }}"
- name: Install WordPress
git: repo=https://github.com/WordPress/WordPress.git dest={{ nginx_root_prefix }}/{{ item.domain_name }}/wordpress version={{ item.wordpress_version }} depth=1
when: item.has_wordpress == 'yes'
with_items: nginx_vhosts
with_items: "{{ nginx_vhosts }}"
tags: wordpress
- name: Fix WordPress directory permissions
file: path={{ nginx_root_prefix }}/{{ item.domain_name }} state=directory owner=nginx group=nginx recurse=yes
when: item.has_wordpress == 'yes'
with_items: nginx_vhosts
with_items: "{{ nginx_vhosts }}"
tags: wordpress
# vim: set ts=2 sw=2: