update
This commit is contained in:
26
uninstall/roles/tfe/tasks/main.yml
Normal file
26
uninstall/roles/tfe/tasks/main.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
####################
|
||||
#Uninstall tfe
|
||||
- name: "[uninstall tfe] stop tfe"
|
||||
systemd:
|
||||
name: tfe
|
||||
state: stopped
|
||||
enabled: no
|
||||
when:
|
||||
- uninstall.tfe == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall tfe] stop tfe-env"
|
||||
systemd:
|
||||
name: tfe-env
|
||||
state: stopped
|
||||
enabled: no
|
||||
when:
|
||||
- uninstall.tfe == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall tfe] uninstall tfe"
|
||||
yum:
|
||||
name:
|
||||
- "{{ tfe }}"
|
||||
state: absent
|
||||
when: uninstall.tfe == 1
|
||||
Reference in New Issue
Block a user