Skip to content

don-rumata/ansible-role-install-snap

Folders and files

NameName
Last commit message
Last commit date
Jun 5, 2020
Apr 3, 2021
May 23, 2020
Apr 3, 2021
Apr 3, 2021
May 2, 2021
Apr 26, 2020
Apr 27, 2020
Apr 3, 2021

Repository files navigation

Ansible Role: Install Snap

License Ansible Galaxy CircleCI

Install Snap for Linux.

Work on

  platforms:
    - name: Fedora
      versions:
        - 33
    - name: Ubuntu
      versions:
        - xenial
        - bionic
        - focal
    - name: Debian
      version:
        - oldstable
        - stable
    - name: EL (CenOS)
      versions:
        - 7
        - 8
    - name: opensuse
      vesrion:
        - tumbleweed
        - 15.2

Requirements

None.

Role Variables

# If you *NOT* use apt-cacher-ng or other caching proxy - select "https".
http_or_https: http

Dependencies

min_ansible_version: 2.8

HowTo

How to install role

Over ansible-galaxy:

ansible-galaxy install don_rumata.ansible_role_install_snap

Over bash+git:

git clone https://github.com/don-rumata/ansible-role-install-snap don_rumata.ansible_role_install_snap

Example Playbook

Install latest snapd on Linux over package manager of you distro:

install-snap.yml:

- name: Install Snap
  hosts: all
  strategy: free
  serial:
    - "100%"
  roles:
    - don_rumata.ansible_role_install_snap
  tasks:

install-firefox-over-snap.yml:

- name: Install FireFox
  hosts: all
  strategy: free
  serial:
    - "100%"
  roles:
    - don_rumata.ansible_role_install_snap
  tasks:

    - name: Install FF over snap
      become: yes
      snap:
        name: firefox
        state: present
      tags:
        - firefox
        - snap

License

Apache License, Version 2.0

Author Information

don Rumata

TODO

  • Add tests.
  • Add more tests.