snapd (#112)
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:
parent
58cb2946e2
commit
2e8ca048a8
5 changed files with 28 additions and 1 deletions
|
@ -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
|
||||
|
|
4
playbooks/base/remove_snapd.yml
Normal file
4
playbooks/base/remove_snapd.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- hosts: all
|
||||
roles:
|
||||
- { role: mgrote.remove_snapd, become: true, tags: "snapd" }
|
7
roles/mgrote.remove_snapd/README.md
Normal file
7
roles/mgrote.remove_snapd/README.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
## mgrote.remove_snapd
|
||||
|
||||
### Beschreibung
|
||||
entfernt snapd
|
||||
|
||||
### Funktioniert auf
|
||||
- [x] Ubuntu (>=18.04)
|
13
roles/mgrote.remove_snapd/tasks/main.yml
Normal file
13
roles/mgrote.remove_snapd/tasks/main.yml
Normal 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
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue