Prevent some tasks from repeating
This commit is contained in:
parent
370c3c6300
commit
d1ad35d0c1
@ -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
|
||||
|
@ -58,10 +58,16 @@
|
||||
group: "www-data"
|
||||
remote_src: yes
|
||||
|
||||
- name: Stat WordPress Salts
|
||||
stat:
|
||||
path: "{{ wp_dir }}/salts.txt"
|
||||
register: salts
|
||||
|
||||
- name: Generate Keys and Salts
|
||||
get_url:
|
||||
url: https://api.wordpress.org/secret-key/1.1/salt/
|
||||
dest: "{{ wp_dir }}/salts.txt"
|
||||
when: not salts.stat.exists
|
||||
|
||||
- name: Grab Keys and Salts
|
||||
slurp: src="{{ wp_dir }}/salts.txt"
|
||||
|
Loading…
Reference in New Issue
Block a user