From 5ee18f448a390436c91c8c6d9275c0d99076be3f Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 5 May 2018 20:08:42 +0300 Subject: Change: add nfs server and stuff to holywood2 --- ansible/roles/holywood2/files/exports | 4 ++++ ansible/roles/holywood2/tasks/main.yml | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 ansible/roles/holywood2/files/exports create mode 100644 ansible/roles/holywood2/tasks/main.yml (limited to 'ansible/roles/holywood2') 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 -- cgit v1.2.1