blob: 025b9d7a3940b692432b4bff95cd12d3723ed9a1 (
plain) (
tree)
|
|
- name: include httpd role vars
include_vars: "{{ inventory_dir }}/roles/httpd/defaults/main.yml"
- name: ensure httpd.d directory exists
file:
path: /etc/httpd.d
state: directory
owner: "{{ user_root }}"
group: "{{ group_root }}"
mode: 0644
- name: ensure htpasswd directory exists
file:
path: /var/www/htpasswd
state: directory
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
|