summaryrefslogtreecommitdiff
path: root/ansible/roles/holywood2
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-05-05 20:08:42 +0300
committerLars Wirzenius <liw@liw.fi>2018-05-05 20:08:42 +0300
commit5ee18f448a390436c91c8c6d9275c0d99076be3f (patch)
tree45516607886453e208a21434c4a348b274b09531 /ansible/roles/holywood2
parent4226b6480441e19490b437305655a81f9f9a9cb8 (diff)
downloadansibleness-5ee18f448a390436c91c8c6d9275c0d99076be3f.tar.gz
Change: add nfs server and stuff to holywood2
Diffstat (limited to 'ansible/roles/holywood2')
-rw-r--r--ansible/roles/holywood2/files/exports4
-rw-r--r--ansible/roles/holywood2/tasks/main.yml24
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