summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ansible/holywood2.yml6
-rw-r--r--ansible/roles/holywood2/files/exports4
-rw-r--r--ansible/roles/holywood2/tasks/main.yml24
-rw-r--r--ansible/roles/nfs-server/tasks/main.yml5
4 files changed, 33 insertions, 6 deletions
diff --git a/ansible/holywood2.yml b/ansible/holywood2.yml
index b0cf536..0c0cba4 100644
--- a/ansible/holywood2.yml
+++ b/ansible/holywood2.yml
@@ -6,9 +6,9 @@
- comfortable-debian-system
- version-controller
- unix_users
- # - nfs-server
- # - holywood
- # - self-updating-system
+ - apache_server
+ - holywood2
+ - self-updating-system
vars:
hostname: holywood2
debian_codename: stretch
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
diff --git a/ansible/roles/nfs-server/tasks/main.yml b/ansible/roles/nfs-server/tasks/main.yml
index 1edd16f..1561f8e 100644
--- a/ansible/roles/nfs-server/tasks/main.yml
+++ b/ansible/roles/nfs-server/tasks/main.yml
@@ -1,4 +1,3 @@
----
-- apt:
+- name: install NFS server
+ apt:
name: nfs-kernel-server
-...