diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-07-29 17:00:20 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-07-29 17:00:20 +0200 |
commit | b232b894c3cbe087c8d504e91637dcf62199eed1 (patch) | |
tree | ea72a7d1a7f63c6425ee46785e1cec924351b2c3 /roles/httpd_pre | |
parent | 22126073344e60c405d086df37b64da0c6d3c086 (diff) | |
download | infrastructure-b232b894c3cbe087c8d504e91637dcf62199eed1.tar.gz |
Bump to third revision of homelab
Diffstat (limited to 'roles/httpd_pre')
-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 |