|
9 | 9 | with_subelements: |
10 | 10 | - "{{ wordpress_installs }}" |
11 | 11 | - plugins |
12 | | - when: item.1 |
| 12 | + when: item.1.name | length > 0 |
13 | 13 | tags: |
14 | 14 | - wordpress-plugins-is-installed-plugin |
15 | 15 |
|
|
20 | 20 | changed_when: true |
21 | 21 | with_items: "{{ _check_installation_plugins.results | default([]) }}" |
22 | 22 | when: |
23 | | - - item.item.1.name |
| 23 | + - item.item.1.name | length > 0 |
24 | 24 | - not item.item.1.zip | default(false) |
25 | 25 | - not item.item.1.url | default(false) |
26 | 26 | - item.rc != 0 |
|
37 | 37 | mode: '0644' |
38 | 38 | with_items: "{{ _check_installation_plugins.results | default([]) }}" |
39 | 39 | when: |
40 | | - - item.item.1.name |
| 40 | + - item.item.1.name | length > 0 |
41 | 41 | - item.item.1.zip | default(false) |
42 | 42 | - not item.item.1.url | default(false) |
43 | 43 | - item.rc != 0 |
|
53 | 53 | changed_when: true |
54 | 54 | with_items: "{{ _check_installation_plugins.results | default([]) }}" |
55 | 55 | when: |
56 | | - - item.item.1.name |
| 56 | + - item.item.1.name | length > 0 |
57 | 57 | - item.item.1.zip | default(false) |
58 | 58 | - not item.item.1.url | default(false) |
59 | 59 | - item.rc != 0 |
|
69 | 69 | changed_when: true |
70 | 70 | with_items: "{{ _check_installation_plugins.results | default([]) }}" |
71 | 71 | when: |
72 | | - - item.item.1.name |
| 72 | + - item.item.1.name | length > 0 |
73 | 73 | - not item.item.1.zip | default(false) |
74 | 74 | - item.item.1.url | default(false) |
75 | 75 | - item.rc != 0 |
|
84 | 84 | with_subelements: |
85 | 85 | - "{{ wordpress_installs }}" |
86 | 86 | - plugins |
87 | | - when: item.1.name |
| 87 | + when: item.1.name | length > 0 |
88 | 88 | tags: |
89 | 89 | - wordpress-plugins-check-install-plugin |
90 | 90 |
|
|
97 | 97 | - "{{ wordpress_installs }}" |
98 | 98 | - plugins |
99 | 99 | when: |
100 | | - - item.1.name |
101 | | - - item.1.activate | default(true) |
| 100 | + - item.1.name | length > 0 |
| 101 | + - item.1.activate | bool | default(true) |
102 | 102 | tags: |
103 | 103 | - wordpress-plugins-activate-plugin |
104 | 104 |
|
|
111 | 111 | - "{{ wordpress_installs }}" |
112 | 112 | - plugins |
113 | 113 | 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) |
116 | 116 | tags: |
117 | 117 | - wordpress-plugins-deactivate-plugin |
0 commit comments