diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-05-05 20:08:42 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-05-05 20:08:42 +0300 |
commit | 5ee18f448a390436c91c8c6d9275c0d99076be3f (patch) | |
tree | 45516607886453e208a21434c4a348b274b09531 | |
parent | 4226b6480441e19490b437305655a81f9f9a9cb8 (diff) | |
download | ansibleness-5ee18f448a390436c91c8c6d9275c0d99076be3f.tar.gz |
Change: add nfs server and stuff to holywood2
-rw-r--r-- | ansible/holywood2.yml | 6 | ||||
-rw-r--r-- | ansible/roles/holywood2/files/exports | 4 | ||||
-rw-r--r-- | ansible/roles/holywood2/tasks/main.yml | 24 | ||||
-rw-r--r-- | ansible/roles/nfs-server/tasks/main.yml | 5 |
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 -... |