diff options
Diffstat (limited to 'roles/httpd_pre/tasks')
-rw-r--r-- | roles/httpd_pre/tasks/main.yml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/roles/httpd_pre/tasks/main.yml b/roles/httpd_pre/tasks/main.yml index eb0af76..025b9d7 100644 --- a/roles/httpd_pre/tasks/main.yml +++ b/roles/httpd_pre/tasks/main.yml @@ -1,8 +1,5 @@ - -# httpd ~~ roles/httpd_pre/main.yml -# prerequisites for `httpd` role - ---- +- name: include httpd role vars + include_vars: "{{ inventory_dir }}/roles/httpd/defaults/main.yml" - name: ensure httpd.d directory exists file: @@ -19,3 +16,12 @@ owner: "www" group: "www" mode: 0700 + +- name: ensure data volume is mounted in chroot + include_role: + name: nfsclient + vars: + nfsclient_dir: "/var/www/data" + nfsclient_server: "{{ global.nfs_server }}" + nfsclient_server_dir: "{{ global.nfs_server_dir }}/{{ ansible_host }}" + when: httpd_use_nfs is defined and httpd_use_nfs |