Skip to content

Commit 89b396d

Browse files
committed
Merge pull request #6 from zeelax/fix/ansible-2.x
Ansible 2.x compatibility stuff
2 parents 3713579 + 693075a commit 89b396d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ nginx_site :
2323
index : "index.html index.htm"
2424
server_name : localhost
2525
listen : 80
26-
## Use josn
26+
## Use json
2727
location1 : {
2828
name: /,
2929
type: location,

tasks/common.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
template:
3232
src=site.j2
3333
dest="{{ nginx_etc }}/sites-available/{{ item.file_name }}.conf"
34-
with_items: nginx_site
34+
with_items: "{{ nginx_site }}"
3535
when: nginx_site | lower != 'none'
3636
notify:
3737
- check reload nginx
@@ -42,7 +42,7 @@
4242
path="{{ nginx_etc }}/sites-enabled/{{ item.file_name }}.conf"
4343
state=link
4444
src="{{ nginx_etc }}/sites-available/{{ item.file_name }}.conf"
45-
with_items: nginx_site
45+
with_items: "{{ nginx_site }}"
4646
notify:
4747
- check reload nginx
4848

@@ -61,4 +61,4 @@
6161
service:
6262
name=nginx
6363
state=started
64-
enabled=yes
64+
enabled=yes

tasks/nginx_debian.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
apt:
1616
name="{{ item }}"
1717
state="{{nginx_apt_state}}"
18-
with_items: ubuntu_pkg
18+
with_items: "{{ ubuntu_pkg }}"
1919
environment: "{{ env }}"
20-
when: ansible_os_family == "Debian"
20+
when: ansible_os_family == "Debian"

tasks/nginx_redhat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
yum:
2727
name="{{ item }}"
2828
state=present
29-
with_items: redhat_pkg
29+
with_items: "{{ redhat_pkg }}"

tasks/nginx_smartos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
pkgin:
99
name="{{ item }}"
1010
state=present
11-
with_items: solaris_pkg
11+
with_items: "{{ solaris_pkg }}"
1212

1313
- name: common | Create the conf.d
1414
file:

0 commit comments

Comments
 (0)