diff options
Diffstat (limited to 'ansible/roles/holywood2')
-rw-r--r-- | ansible/roles/holywood2/files/exports | 4 | ||||
-rw-r--r-- | ansible/roles/holywood2/tasks/main.yml | 24 |
2 files changed, 28 insertions, 0 deletions
diff --git a/ansible/roles/holywood2/files/exports b/ansible/roles/holywood2/files/exports new file mode 100644 index 0000000..d7288a6 --- /dev/null +++ b/ansible/roles/holywood2/files/exports @@ -0,0 +1,4 @@ +/mnt/soile/pupu 10.0.0.204(rw,nohide,async,no_subtree_check,insecure) +/mnt/soile/pupu 10.0.0.0/24(rw,nohide,async,no_subtree_check,insecure) +/mnt/Ella3/media 10.0.0.204(ro,nohide,async,no_subtree_check,insecure) +/mnt/Ella3/media 10.0.0.0/24(ro,nohide,async,no_subtree_check,insecure) diff --git a/ansible/roles/holywood2/tasks/main.yml b/ansible/roles/holywood2/tasks/main.yml new file mode 100644 index 0000000..fbd5224 --- /dev/null +++ b/ansible/roles/holywood2/tasks/main.yml @@ -0,0 +1,24 @@ +- name: create soile group + group: + name: soile + gid: 501 + +- name: create soile account + user: + name: soile + comment: Soile Mottisenkangas + createhome: no + group: soile + uid: 501 + +- name: install NFS server + apt: + name: nfs-kernel-server + +- name: install /etc/exports + copy: + src: exports + dest: /etc/exports + owner: root + group: root + mode: 0644 |