don_rumata.ansible_role_install_snap

Ansible Role: Install Snap

License Ansible Galaxy CircleCI

This guide helps you install Snap on Linux.

Supported Platforms

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

Requirements

No special requirements.

Role Variables

# Choose "https" if you do not use apt-cacher-ng or any caching proxy.
http_or_https: http

Dependencies

Requires Ansible version 2.8 or newer.

How to Use

Installing the Role

Using ansible-galaxy:

ansible-galaxy install don_rumata.ansible_role_install_snap

Using bash+git:

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

Example Playbook

To install the latest snapd on your Linux distribution's package manager:

install-snap.yml:

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

To install Firefox using Snap:

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

Licensed under Apache License, Version 2.0

Author

don Rumata

To Do

  • Add tests.
  • Add more tests.
Installa
ansible-galaxy install don_rumata.ansible_role_install_snap
Licenza
apache-2.0
Download
1.3k
Proprietario
Здесь все бесполезно. Знаний не хватает, а золото теряет цену, потому что опаздывает.