aboutsummaryrefslogtreecommitdiffstats
path: root/playbooks/network
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-03-03 14:56:21 +0100
committerbinary <me@rgoncalves.se>2021-03-03 14:56:21 +0100
commit87a20622103d74eca59003ae2adac81bd6ffee9b (patch)
treefb925eb359ef1152e9733b145521df4c5dd0aea7 /playbooks/network
parentc30043e5d82659aabe2991fa0f21b647558587ea (diff)
downloadinfrastructure-87a20622103d74eca59003ae2adac81bd6ffee9b.tar.gz
Start to refactor playbooks with include
Diffstat (limited to 'playbooks/network')
-rw-r--r--playbooks/network/localhost.yml12
-rw-r--r--playbooks/network/nfs.yml21
2 files changed, 33 insertions, 0 deletions
diff --git a/playbooks/network/localhost.yml b/playbooks/network/localhost.yml
new file mode 100644
index 0000000..4d87654
--- /dev/null
+++ b/playbooks/network/localhost.yml
@@ -0,0 +1,12 @@
+
+# network/localhost ~~ playbooks/network/localhost.yml
+# localhost network configuration
+
+---
+
+- hosts: localhost
+ gather_facts: no
+ roles:
+ - { role: sshdns }
+
+
diff --git a/playbooks/network/nfs.yml b/playbooks/network/nfs.yml
new file mode 100644
index 0000000..1b8717e
--- /dev/null
+++ b/playbooks/network/nfs.yml
@@ -0,0 +1,21 @@
+
+# network/nfs ~~ playbooks/nfs/network.yml
+# nfs network playbook
+
+---
+
+- name: ensure installation and configuration on server side
+ hosts: stack0
+ roles:
+ - role: nfsd
+ vars:
+ nfsd_dirs: "{% for vm in vms %}{{ vm.name }} {% endfor %}"
+ tags: play_network_nfsserver
+
+- name: ensure installation and configuration on client side
+ hosts: ~st[0-9].*
+ roles:
+ - role: nfsclient
+ vars:
+ nfsclient_server_dir: "{{ global.nfs_server_dir }}/{{ ansible_host }}"
+ tags: play_network_nfsclient
remember that computers suck.