Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/don-rumata/ansible-role-install-snap

Ansible Role: Install Snap
https://github.com/don-rumata/ansible-role-install-snap

ansible ansible-galaxy ansible-role centos debian fedora opensuse rhel snap snapcraft snappy ubuntu

Last synced: 21 days ago
JSON representation

Ansible Role: Install Snap

Awesome Lists containing this project

README

        

# Ansible Role: Install Snap

[![License][license-image]][license-url] [![Ansible Galaxy][ansible-galaxy-image]][ansible-galaxy-url] [![CircleCI][circleci-image]][circleci-url]

Install [Snap](https://snapcraft.io/) for Linux.

## Work on

```yaml
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

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

## Dependencies

[min_ansible_version: 2.8](https://docs.ansible.com/ansible/latest/modules/snap_module.html)

## HowTo

### How to install role

Over `ansible-galaxy`:

```bash
ansible-galaxy install don_rumata.ansible_role_install_snap
```

Over `bash+git`:

```bash
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`:

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

`install-firefox-over-snap.yml`:

```yaml
- 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](https://github.com/don-rumata)

## TODO

- ~~Add tests.~~
- Add more tests.

[license-image]: https://img.shields.io/github/license/don-rumata/ansible-role-install-snap.svg
[license-url]: https://opensource.org/licenses/Apache-2.0

[ansible-galaxy-image]: https://img.shields.io/badge/ansible_galaxy-don__rumata.ansible__role__install__snap-blue.svg
[ansible-galaxy-url]: https://galaxy.ansible.com/don_rumata/ansible_role_install_snap

[circleci-image]: https://circleci.com/gh/don-rumata/ansible-role-install-snap.svg?style=shield
[circleci-url]: https://circleci.com/gh/don-rumata/ansible-role-install-snap