From 92a3e3becf353a892a8fad746c313b9ad0373174 Mon Sep 17 00:00:00 2001 From: binary Date: Thu, 25 Mar 2021 21:54:08 +0100 Subject: Refactor networks playbooks in sub-playbooks --- playbooks/network.yml | 6 ++---- playbooks/network/route.yml | 12 ++++++++++++ playbooks/st0cld0.rgoncalves.se.yml | 2 +- playbooks/st0gme0.rgoncalves.se.yml | 1 + 4 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 playbooks/network/route.yml (limited to 'playbooks') 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"} -- cgit v1.2.3