summaryrefslogtreecommitdiffstats
path: root/playbooks/adhoc/contiv/delete_contiv.yml
blob: 91948c72e794fedbbb1298f111c8dfd5217aaa42 (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: delete 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