playbooks

rolle

bugfix vim

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#112
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
Michael Grote 2021-06-08 11:22:05 +02:00
parent 58cb2946e2
commit 2e8ca048a8
5 changed files with 28 additions and 1 deletions

View File

@ -14,3 +14,4 @@
- import_playbook: base/ssh_pass_login.yml
- import_playbook: base/f2b.yml
- import_playbook: base/monitoring.yml
- import_playbook: base/remove_snapd.yml

View File

@ -0,0 +1,4 @@
---
- hosts: all
roles:
- { role: mgrote.remove_snapd, become: true, tags: "snapd" }

View File

@ -0,0 +1,7 @@
## mgrote.remove_snapd
### Beschreibung
entfernt snapd
### Funktioniert auf
- [x] Ubuntu (>=18.04)

View File

@ -0,0 +1,13 @@
---
- name: remove snapd package
become: yes
ansible.builtin.package:
name: snapd
state: absent
purge: yes
- name: remove /var/cache/snapd/
become: true
ansible.builtin.file:
path: /var/cache/snapd/
state: absent

View File

@ -32,5 +32,7 @@
ansible.builtin.shell: yes | vim -c PluginInstall -c qall
args:
chdir: /home/mg
when:
- (folder_exists.stat.exists == False) and ("ansible_facts['distribution'] == 'Ubuntu'")
become: yes
become_user: mg
when: (folder_exists.stat.exists == False)