aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-03-25 21:54:08 +0100
committerbinary <me@rgoncalves.se>2021-03-25 21:54:08 +0100
commit92a3e3becf353a892a8fad746c313b9ad0373174 (patch)
treeee4e52386597966523a4e37931f4db27b46f2374
parent3f6ecfce6ffeb89b8fc46d88d30236904a2967fe (diff)
downloadinfrastructure-92a3e3becf353a892a8fad746c313b9ad0373174.tar.gz
Refactor networks playbooks in sub-playbooks
-rw-r--r--playbooks/network.yml6
-rw-r--r--playbooks/network/route.yml12
-rw-r--r--playbooks/st0cld0.rgoncalves.se.yml2
-rw-r--r--playbooks/st0gme0.rgoncalves.se.yml1
4 files changed, 16 insertions, 5 deletions
diff --git a/playbooks/network.yml b/playbooks/network.yml
index 79d20ec..f23bc96 100644
--- a/playbooks/network.yml
+++ b/playbooks/network.yml
@@ -13,10 +13,8 @@
- name: import wireguard network playbook
import_playbook: network/wireguard.yml
-- hosts: servers
- roles:
- - { role: dns }
- - { role: sshd }
+- name: import network route playbook
+ import_playbook: network/route.yml
- name: import grafana playbook
import_playbook: network/grafana.yml
diff --git a/playbooks/network/route.yml b/playbooks/network/route.yml
new file mode 100644
index 0000000..518dc03
--- /dev/null
+++ b/playbooks/network/route.yml
@@ -0,0 +1,12 @@
+
+# network ~~ playbooks/network/route.yml
+# global route and sshd
+
+---
+
+- hosts: servers
+ roles:
+ - { role: dns }
+ - { role: sshd }
+
+
diff --git a/playbooks/st0cld0.rgoncalves.se.yml b/playbooks/st0cld0.rgoncalves.se.yml
index 9717fdd..0ecfc16 100644
--- a/playbooks/st0cld0.rgoncalves.se.yml
+++ b/playbooks/st0cld0.rgoncalves.se.yml
@@ -11,7 +11,7 @@
vars:
nfsclient_dir: "/var/www/nextcloud"
nfsclient_server_dir: "{{ global.nfs_server_dir }}/{{ ansible_host }}/nextcloud"
- tags: role_nfsclient
+ tags: never role_nfsclient
- { role: nextcloud, tags: "role_nextcloud" }
- { role: miniflux, tags: "role_miniflux" }
diff --git a/playbooks/st0gme0.rgoncalves.se.yml b/playbooks/st0gme0.rgoncalves.se.yml
index adceec8..8e7c0a5 100644
--- a/playbooks/st0gme0.rgoncalves.se.yml
+++ b/playbooks/st0gme0.rgoncalves.se.yml
@@ -7,3 +7,4 @@
- hosts: st0gme0
roles:
- { role: minecraft , tags: "role_minecraft"}
+ - { role: factorio , tags: "role_factorio"}
remember that computers suck.