Skip to content

Commit d7ee3a9

Browse files
committed
Fix bool
1 parent 71e38b2 commit d7ee3a9

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

tasks/plugins.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
with_subelements:
1010
- "{{ wordpress_installs }}"
1111
- plugins
12-
when: item.1
12+
when: item.1.name | length > 0
1313
tags:
1414
- wordpress-plugins-is-installed-plugin
1515

@@ -20,7 +20,7 @@
2020
changed_when: true
2121
with_items: "{{ _check_installation_plugins.results | default([]) }}"
2222
when:
23-
- item.item.1.name
23+
- item.item.1.name | length > 0
2424
- not item.item.1.zip | default(false)
2525
- not item.item.1.url | default(false)
2626
- item.rc != 0
@@ -37,7 +37,7 @@
3737
mode: '0644'
3838
with_items: "{{ _check_installation_plugins.results | default([]) }}"
3939
when:
40-
- item.item.1.name
40+
- item.item.1.name | length > 0
4141
- item.item.1.zip | default(false)
4242
- not item.item.1.url | default(false)
4343
- item.rc != 0
@@ -53,7 +53,7 @@
5353
changed_when: true
5454
with_items: "{{ _check_installation_plugins.results | default([]) }}"
5555
when:
56-
- item.item.1.name
56+
- item.item.1.name | length > 0
5757
- item.item.1.zip | default(false)
5858
- not item.item.1.url | default(false)
5959
- item.rc != 0
@@ -69,7 +69,7 @@
6969
changed_when: true
7070
with_items: "{{ _check_installation_plugins.results | default([]) }}"
7171
when:
72-
- item.item.1.name
72+
- item.item.1.name | length > 0
7373
- not item.item.1.zip | default(false)
7474
- item.item.1.url | default(false)
7575
- item.rc != 0
@@ -84,7 +84,7 @@
8484
with_subelements:
8585
- "{{ wordpress_installs }}"
8686
- plugins
87-
when: item.1.name
87+
when: item.1.name | length > 0
8888
tags:
8989
- wordpress-plugins-check-install-plugin
9090

@@ -97,8 +97,8 @@
9797
- "{{ wordpress_installs }}"
9898
- plugins
9999
when:
100-
- item.1.name
101-
- item.1.activate | default(true)
100+
- item.1.name | length > 0
101+
- item.1.activate | bool | default(true)
102102
tags:
103103
- wordpress-plugins-activate-plugin
104104

@@ -111,7 +111,7 @@
111111
- "{{ wordpress_installs }}"
112112
- plugins
113113
when:
114-
- item.1.name
115-
- not item.1.activate | default(true)
114+
- item.1.name | length > 0
115+
- not item.1.activate | bool | default(true)
116116
tags:
117117
- wordpress-plugins-deactivate-plugin

tasks/themes.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
with_subelements:
1010
- "{{ wordpress_installs }}"
1111
- themes
12-
when: item.1.name
12+
when: item.1.name | length > 0
1313
tags:
1414
- wordpress-themes-is-installed-theme
1515

@@ -19,7 +19,7 @@
1919
changed_when: true
2020
with_items: "{{ _check_installation_themes.results | default([]) }}"
2121
when:
22-
- item.item.1.name
22+
- item.item.1.name | length > 0
2323
- item.rc != 0
2424
tags:
2525
- wordpress-themes-install-theme
@@ -31,7 +31,7 @@
3131
with_subelements:
3232
- "{{ wordpress_installs }}"
3333
- themes
34-
when: item.1.name
34+
when: item.1.name | length > 0
3535
tags:
3636
- wordpress-themes-install-theme-check
3737

@@ -44,7 +44,7 @@
4444
- "{{ wordpress_installs }}"
4545
- themes
4646
when:
47-
- item.1.name
48-
- item.1.activate | default(false)
47+
- item.1.name | length > 0
48+
- item.1.activate | bool | default(false)
4949
tags:
5050
- wordpress-themes-activate-theme

0 commit comments

Comments
 (0)