..

Role: snap

Description

Installs and configures Snap package manager and essential snap applications for development.

Requirements

  • Ansible 2.9+
  • Ubuntu/Debian systems
  • Internet access for snap store

Installed Snap Applications

  • Visual Studio Code: Popular code editor
  • Cursor: AI-powered code editor
  • yq: YAML processor
  • btop: Modern system monitor
  • bandwhich: Network utilization monitor

Variables

Variable Default Description
snap_install_vscode true Install VS Code via snap
snap_install_cursor true Install Cursor editor
snap_install_yq true Install yq YAML processor
snap_install_btop true Install btop system monitor

Dependencies

  • base role (for system packages)

Example Playbook

- hosts: dev
  roles:
    - { role: snap, snap_install_cursor: false }

Tags

  • snap: All snap-related tasks
  • apps: Application installations
  • editors: Code editor installations

Notes

  • Enables universe repository for snap support
  • Waits for snap system to be ready before installing
  • Some snaps may require additional permissions
  • Classic confinement used for development tools