From b232b894c3cbe087c8d504e91637dcf62199eed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Thu, 29 Jul 2021 17:00:20 +0200 Subject: Bump to third revision of homelab --- roles/httpd_pre/tasks/main.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'roles/httpd_pre/tasks') 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 -- cgit v1.2.3