summaryrefslogtreecommitdiffstats
path: root/playbooks/adhoc/contiv/delete_contiv.yml
blob: eec6c23a7bbe1c754b3ed5db127a3b2f59adbdfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
- name: Uninstall contiv
  hosts: all
  gather_facts: False
  tasks:
    - systemd:
        name: "{{ item }}"
        state: stopped
      with_items:
        - contiv-etcd
        - netmaster
        - netplugin
        - openvswitch
      ignore_errors: True
    - file:
        path: "{{ item }}"
        state: absent
      with_items:
        - /opt/cni
        - /opt/contiv
        - /etc/systemd/system/netmaster.service
        - /etc/systemd/system/netplugin.service
        - /etc/systemd/system/contiv-etcd.service
        - /etc/systemd/system/contiv-etcd.service.d
        - /var/lib/contiv-etcd
        - /etc/default/netmaster
        - /etc/default/netplugin
        - /etc/openvswitch/conf.db
    - command: systemctl daemon-reload