diff --git a/roles/phabricator/tasks/files.yml b/roles/phabricator/tasks/files.yml index b36bf5c..544623e 100644 --- a/roles/phabricator/tasks/files.yml +++ b/roles/phabricator/tasks/files.yml @@ -1,40 +1,36 @@ --- # Files over NFS - name: Create the Files directory file: state: directory path: "{{ files_path }}" owner: "{{ www_user }}" group: "{{ phd_user }}" mode: 0770 - tags: files # TODO: Mount openstack volume - name: Create NFS share lineinfile: dest: /etc/exports line: "{{ files_path }} {{ ip_range }}(rw,sync,no_subtree_check,no_root_squash)" - tags: files notify: restart nfs when: "inventory_hostname == groups.phd[0]" - name: Enable nfs server service: name: nfs-server state: started enabled: true - tags: files when: "inventory_hostname == groups.phd[0]" - name: Mount NFS share mount: name: "{{ files_path }}" src: "{{ groups['phd'][0] }}:{{ files_path }}" fstype: nfs opts: defaults state: mounted - tags: files when: "inventory_hostname != groups.phd[0]"