Skip to content
Snippets Groups Projects

WIP: add acmebot role

1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -65,7 +65,8 @@
@@ -65,7 +65,8 @@
- webservices
- webservices
- name: check if dokuwiki is installed
- name: check if dokuwiki is installed
stat: path="{{item.path}}/VERSION"
stat:
 
path: "{{item.path}}/VERSION"
register: version_file
register: version_file
with_items: "{{dokuwiki}}"
with_items: "{{dokuwiki}}"
loop_control:
loop_control:
@@ -88,8 +89,8 @@
@@ -88,8 +89,8 @@
- name: backup dokuwiki data on update
- name: backup dokuwiki data on update
command: /bin/true
command: /bin/true
changed_when: item.2.stat.exists and (item.1 is failed or item.1 is skipped or item.0.version != item.1.stdout|regex_replace(' .*'))
# yamllint disable-line rule:line-length
# yamllint disable-line rule:line-length
 
changed_when: item.2.stat.exists and (item.1 is failed or item.1 is skipped or item.0.version != item.1.stdout|regex_replace(' .*'))
with_together:
with_together:
- "{{ dokuwiki }}"
- "{{ dokuwiki }}"
- "{{ versions.results }}"
- "{{ versions.results }}"
Loading