ansible_role_install_snap

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.
Install
ansible-galaxy install don-rumata/ansible-role-install-snap
GitHub repository
License
apache-2.0
Downloads
1288
Owner
Здесь все бесполезно. Знаний не хватает, а золото теряет цену, потому что опаздывает.