diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-11 13:53:42 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-12-11 13:53:42 +0000 |
commit | 48208c520bb15d16b0eab623b97fa5e86c6f665c (patch) | |
tree | 04426637268385dbdd230ed61b9b1dd86c5de542 /roles/httpd_pre/tasks | |
parent | c1e3bbbe04863536e88d4d79afbbb85253e7d3b4 (diff) | |
download | rules-48208c520bb15d16b0eab623b97fa5e86c6f665c.tar.gz |
roles/httpd_pre: Switch for NFS and common defaults
Diffstat (limited to 'roles/httpd_pre/tasks')
-rw-r--r-- | roles/httpd_pre/tasks/main.yml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/roles/httpd_pre/tasks/main.yml b/roles/httpd_pre/tasks/main.yml index 83afb91..0209a84 100644 --- a/roles/httpd_pre/tasks/main.yml +++ b/roles/httpd_pre/tasks/main.yml @@ -1,6 +1,3 @@ -- name: include httpd role variables - include_vars: "{{ inventory_dir }}/roles/httpd/defaults/main.yml" - - name: create httpd directory file: path: /etc/httpd.d @@ -16,3 +13,10 @@ owner: "www" group: "www" mode: 0700 + +- name: mount nfs in chroot + include_role: + name: nfsclient + vars: + nfsclient_dir: "{{ httpd_chroot }}/data" + when: httpd_use_nfs |