mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-05-06 15:18:57 +00:00
tweak ansible uninstall
This commit is contained in:
parent
3c92e6ec06
commit
df4ca7ccd0
1 changed files with 4 additions and 18 deletions
|
@ -46,7 +46,8 @@
|
|||
groups:
|
||||
- docker
|
||||
- tpot
|
||||
state: absent
|
||||
state: present
|
||||
remove: yes
|
||||
when: ansible_distribution in ["Debian", "Fedora", "openSUSE Tumbleweed", "Ubuntu"]
|
||||
|
||||
- name: Check for non-root user id (All)
|
||||
|
@ -65,16 +66,11 @@
|
|||
become: true
|
||||
|
||||
tasks:
|
||||
- name: Remove T-Pot group (All)
|
||||
group:
|
||||
name: tpot
|
||||
state: absent
|
||||
when: ansible_distribution in ["Debian", "Fedora", "openSUSE Tumbleweed", "Ubuntu"]
|
||||
|
||||
- name: Remove T-Pot user (All)
|
||||
user:
|
||||
name: tpot
|
||||
state: absent
|
||||
remove: yes
|
||||
when: ansible_distribution in ["Debian", "Fedora", "openSUSE Tumbleweed", "Ubuntu"]
|
||||
|
||||
- name: Revert SELinux config (Fedora)
|
||||
|
@ -161,7 +157,6 @@
|
|||
- name: Stop all Docker containers (All)
|
||||
docker_container:
|
||||
state: absent
|
||||
force: true
|
||||
name: "*"
|
||||
when: ansible_distribution in ["Debian", "Fedora", "openSUSE Tumbleweed", "Ubuntu"]
|
||||
ignore_errors: true
|
||||
|
@ -176,13 +171,6 @@
|
|||
when: ansible_distribution in ["Debian", "Fedora", "openSUSE Tumbleweed", "Ubuntu"]
|
||||
ignore_errors: true
|
||||
|
||||
- name: Stop Docker
|
||||
service:
|
||||
name: docker
|
||||
state: stopped
|
||||
enabled: false
|
||||
when: ansible_distribution in ["Debian", "Fedora", "openSUSE Tumbleweed", "Ubuntu"]
|
||||
|
||||
- name: Uninstall Docker Engine packages
|
||||
package:
|
||||
name:
|
||||
|
@ -235,7 +223,6 @@
|
|||
package:
|
||||
name:
|
||||
- busybox-net-tools
|
||||
- git
|
||||
- grc
|
||||
- neovim
|
||||
- net-tools
|
||||
|
@ -250,7 +237,6 @@
|
|||
- net-tools
|
||||
- postfix
|
||||
- yast2-auth-client
|
||||
- yast2-auth-user
|
||||
state: latest
|
||||
state: present
|
||||
update_cache: yes
|
||||
when: ansible_distribution == "openSUSE Tumbleweed"
|
||||
|
|
Loading…
Reference in a new issue