diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-20 03:35:08 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-20 03:35:08 +0200 |
commit | ac06da81fbf302c12b235ddde0a5fae93bba20f4 (patch) | |
tree | 2ce869be345bb3cf8494185e7a3191abf4fe7d9e /roles/kubernetes/net/kubeguard/reset | |
parent | kubernetes: move kubeguard to kubeadm/base (diff) |
kubernetes: move kubeguard/reset to kubeadm/reset
Diffstat (limited to 'roles/kubernetes/net/kubeguard/reset')
-rw-r--r-- | roles/kubernetes/net/kubeguard/reset/handlers/main.yml | 4 | ||||
-rw-r--r-- | roles/kubernetes/net/kubeguard/reset/tasks/main.yml | 26 |
2 files changed, 0 insertions, 30 deletions
diff --git a/roles/kubernetes/net/kubeguard/reset/handlers/main.yml b/roles/kubernetes/net/kubeguard/reset/handlers/main.yml deleted file mode 100644 index bb7fde2b..00000000 --- a/roles/kubernetes/net/kubeguard/reset/handlers/main.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- name: reload systemd - systemd: - daemon_reload: yes diff --git a/roles/kubernetes/net/kubeguard/reset/tasks/main.yml b/roles/kubernetes/net/kubeguard/reset/tasks/main.yml deleted file mode 100644 index d24f9eff..00000000 --- a/roles/kubernetes/net/kubeguard/reset/tasks/main.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -- name: check if kubeguard interface service unit exists - stat: - path: /etc/systemd/system/kubeguard-interfaces.service - register: kubeguard_interface_unit - -- name: bring down kubeguard interface - systemd: - name: kubeguard-interfaces.service - state: stopped - when: kubeguard_interface_unit.stat.exists - -- name: gather list of all kubeguard related service units - find: - path: /etc/systemd/system/ - patterns: - - "kubeguard-peer-*.service" - - kubeguard-interfaces.service - register: kubeguard_units_installed - -- name: remove all kubeguard related files and directories - loop: "{{ kubeguard_units_installed.files | map(attribute='path') | list | flatten | union(['/var/lib/kubeguard']) }}" - file: - path: "{{ item }}" - state: absent - notify: reload systemd |