disable_snapd

Ansible Role: disable-snapd

It does what it says on the tin. A very simple role to stop and remove snapd.

Requirements

Ubuntu.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

disable_snapd_stop_service: true

When set to true, the service is stopped.

disable_snapd_uninstall_snapd: true

When set to true, the package is uninstalled.

Less commonly needed variables:

disable_snapd_service_name: "snapd"
disable_snapd_package_name: "snapd"

Dependencies

None.

Example Playbook

First, add the following in your requirements.yml file:

    - src: benyanke.disable_snapd

Then install the role:

ansible-galaxy install -r requirements.yml

Include the role for running

    - hosts: servers
      roles:
         - { role: benyanke.disable_snapd }

Or, pass in parameters:

    - hosts: servers
      roles:
         - { role: benyanke.disable_snapd, disable_snapd_uninstall_snapd: false}

License

GPLv3

About

Disables and removes snapd from ubuntu systems

Install
ansible-galaxy install benyanke/ansible-disable-snapd
GitHub repository
License
gpl-3.0
Downloads
46
Owner
Doing cool devops stuff | Most of my current interesting work is on my gitlab currently (gitlab.com/benyanke)