Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
notthebee committed Jan 9, 2022
1 parent c122791 commit 4e35696
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 28 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ The playbook is mostly being developed for personal use, so stuff is going to be
* [Watchtower](https://hub.docker.com/r/containrrr/watchtower) (An automated updater for Docker images)
* [DuckDNS](https://hub.docker.com/r/linuxserver/duckdns/) (A dynamic DNS client for DuckDNS)
* [SWAG](https://hub.docker.com/r/linuxserver/swag) (A reverse proxy with built-in support for dynamic DNS, Certbot and fail2ban)
* [bunkerized-nginx](https://github.com/bunkerity/bunkerized-nginx) (A NGINX-based web server focused on security)

#### Home Automation
* [Home Assistant](https://hub.docker.com/r/homeassistant/home-assistant) (A FOSS smart home hub)
Expand All @@ -50,7 +51,9 @@ The playbook is mostly being developed for personal use, so stuff is going to be
## Other features:
* MergerFS with Snapraid
* Samba
* Fail2Ban for Nextcloud and Vaultwarden with Cloudflare support
* Fail2Ban for Nextcloud, Vaultwarden and endlessh with Cloudflare support
* CrowdSec with the iptables bouncer
* endlessh

## Usage
Install Ansible (macOS):
Expand Down
55 changes: 28 additions & 27 deletions roles/system/tasks/yeet_snaps.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
---
- name: Unmount the core* snaps
mount:
name: "/snap/core*"
state: unmounted
- name: "Check if snap is installed"
package_facts:
manager: "auto"

- name: Remove the pre-installed snaps
snap:
name: "{{ item }}"
state: absent
with_items:
- lxd
- core
- core18
- snapd
ignore_errors: yes
- name: Remove snap functionality
when: "'snapd' in ansible_facts.packages"
block:
- name: Unmount the core* snaps
mount:
name: "/snap/core*"
state: unmounted

- name: Remove the snap package from apt
apt:
package: snapd
state: absent
purge: yes
- name: Remove the pre-installed snaps
snap:
name: "*"
state: absent

- name: Remove the snap folders
file:
name: "{{ item }}"
state: absent
with_items:
- /home/{{ username }}/snap
- /var/snap
- /var/lib/snap
- name: Remove the snap package from apt
apt:
package: snapd
state: absent
purge: yes

- name: Remove the snap folders
file:
name: "{{ item }}"
state: absent
with_items:
- /home/{{ username }}/snap
- /var/snap
- /var/lib/snap

0 comments on commit 4e35696

Please sign in to comment.