add ansible uninstall

This commit is contained in:
t3chn0m4g3
2023-06-26 04:59:52 +02:00
parent 9be17e982b
commit 3c92e6ec06
2 changed files with 258 additions and 2 deletions

View File

@ -223,7 +223,7 @@
state: absent
when: ansible_distribution in ["Ubuntu"]
- name: Change SSH Port to 64295 (All)
- name: Change SSH Port to 64295 (Debian, Fedora, Ubuntu)
lineinfile:
path: /etc/ssh/sshd_config
line: "Port 64295"
@ -303,7 +303,7 @@
name: "{{ 'sshd' if ansible_distribution == 'Debian' else 'ssh' }}"
state: restarted
enabled: true
when: ansible_distribution in ["Debian", "Ubuntu"]
when: ansible_distribution in ["Debian", "Fedora", "openSUSE Tumbleweed", "Ubuntu"]
#######################################################################
# T-Pot - Adjust group users, bashrc, clone / update T-Pot repository #