Use Vagrantfile to build virtual site
[icn.git] / deploy / metal3-vm / vm-setup / roles / virtbmc / tasks / teardown_tasks.yml
1 ---
2
3 - name: Remove virtualbmc directories
4   file:
5     path: "{{ item }}"
6     state: absent
7   with_items:
8     - "/etc/virtualbmc"
9     - "/var/log/virtualbmc"
10     - "/root/.vbmc/"
11   become: true
12
13 - name: Stop/disable the Virtual BMCs (virtualbmc >= 1.4.0+) on CentOS
14   when:
15     - ansible_os_family == "RedHat"
16   service:
17     name: "virtualbmc"
18     state: "stopped" 
19     enabled: false
20   become: true
21
22 - name: Stop/disable the Virtual BMCs (virtualbmc >= 1.4.0+) on Ubuntu
23   when:
24     - ansible_distribution == 'Ubuntu' 
25   shell: pkill vbmcd || true
26   become: true