diff --git a/aws_bitbucket_nfs_node.yml b/aws_bitbucket_nfs_node.yml index 8e95593..e5fd0c8 100644 --- a/aws_bitbucket_nfs_node.yml +++ b/aws_bitbucket_nfs_node.yml @@ -8,6 +8,9 @@ atl_product_edition: "bitbucket" atl_product_user: "bitbucket" + atl_nfs_mountpoint: "{{ atl_shared_mountpoint }}/bitbucket/shared" + atl_nfs_target: "{{ atl_shared_mountpoint }}/bitbucket/shared" + roles: - role: linux_common - role: aws_common diff --git a/roles/nfs_server/tasks/main.yml b/roles/nfs_server/tasks/main.yml index 14aaeab..d032589 100644 --- a/roles/nfs_server/tasks/main.yml +++ b/roles/nfs_server/tasks/main.yml @@ -33,6 +33,15 @@ state: mounted +- name: Create the shared home as BB mounts this directly + file: + path: "{{ atl_shared_mountpoint }}/bitbucket/shared" + state: directory + owner: "{{ atl_product_user }}" + group: "{{ atl_product_user }}" + mode: 0750 + + - name: Create the NFS export file template: src: "media-atl.exports.j2"