mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
DCD-386: Configure and enable NFS server on node.
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
---
|
||||
|
||||
- name: Create product user for mapping
|
||||
user:
|
||||
name: "{{ atl_product_user }}"
|
||||
comment: "Product runtime user"
|
||||
- name: Install distro-specific NFS packages
|
||||
include_tasks: "{{ ansible_distribution|lower }}.yml"
|
||||
|
||||
|
||||
- name: Create mountpoint
|
||||
file:
|
||||
@@ -32,3 +31,17 @@
|
||||
src: "LABEL={{ atl_nfs_fs_label }}"
|
||||
fstype: "{{ atl_nfs_fs_type }}"
|
||||
state: mounted
|
||||
|
||||
|
||||
- name: Create the NFS export file
|
||||
template:
|
||||
src: "media-atl.exports.j2"
|
||||
dest: "/etc/exports.d/20-media-atl.exports"
|
||||
notify:
|
||||
- Restart NFS
|
||||
|
||||
- name: Enable NFS
|
||||
service:
|
||||
name: nfs.service
|
||||
enabled: true
|
||||
state: started
|
||||
|
||||
Reference in New Issue
Block a user