From 1820e35943cbc561d04537b37bc2b57dcd48c5fd Mon Sep 17 00:00:00 2001 From: "max.mehl" Date: Thu, 3 Mar 2022 11:04:31 +0100 Subject: [PATCH] move task file for adding peers on the server to server role --- roles/client/tasks/main.yml | 4 +++- .../tasks/add_peer_server.yml => server/tasks/add_peer.yml} | 0 roles/server/tasks/main.yml | 4 +--- 3 files changed, 4 insertions(+), 4 deletions(-) rename roles/{client/tasks/add_peer_server.yml => server/tasks/add_peer.yml} (100%) diff --git a/roles/client/tasks/main.yml b/roles/client/tasks/main.yml index 3c47058..f34ce98 100644 --- a/roles/client/tasks/main.yml +++ b/roles/client/tasks/main.yml @@ -63,7 +63,9 @@ - name: Add machine as innernet peer tags: [peers] - include_tasks: add_peer_server.yml + include_role: + name: server + tasks_from: add_peer args: apply: tags: [peers] diff --git a/roles/client/tasks/add_peer_server.yml b/roles/server/tasks/add_peer.yml similarity index 100% rename from roles/client/tasks/add_peer_server.yml rename to roles/server/tasks/add_peer.yml diff --git a/roles/server/tasks/main.yml b/roles/server/tasks/main.yml index 01b8e38..a37a50e 100644 --- a/roles/server/tasks/main.yml +++ b/roles/server/tasks/main.yml @@ -84,9 +84,7 @@ - name: Add manually defined peers tags: [peers] - include_role: - name: client - tasks_from: add_peer_server + include_tasks: add_peer.yml args: apply: tags: [peers]