Prevent some tasks from repeating

This commit is contained in:
2020-01-22 23:31:54 -05:00
parent 370c3c6300
commit d1ad35d0c1
2 changed files with 8 additions and 0 deletions

View File

@@ -96,6 +96,7 @@
--admin-user {{ nc_admin }} --admin-pass {{ nc_admin_pass }} \
--data-dir {{ nc_dir }}/public_html/data
become_user: www-data
register: nextcloud_install
args:
chdir: "{{ nc_dir }}/public_html"
creates: "{{ nc_dir }}/public_html/config/config.php"
@@ -106,6 +107,7 @@
become_user: www-data
args:
chdir: "{{ nc_dir }}/public_html"
when: nextcloud_install.changed
- name: "Enable Apache2 Module: rewrite"
apache2_module: name=rewrite state=present