项目作者: don-rumata

项目描述 :
Ansible Role: Install Snap
高级语言:
项目地址: git://github.com/don-rumata/ansible-role-install-snap.git
创建时间: 2020-04-26T14:55:22Z
项目社区:https://github.com/don-rumata/ansible-role-install-snap

开源协议:Apache License 2.0

下载


Ansible Role: Install Snap

License Ansible Galaxy CircleCI

Install Snap for Linux.

Work on

  1. platforms:
  2. - name: Fedora
  3. versions:
  4. - 33
  5. - name: Ubuntu
  6. versions:
  7. - xenial
  8. - bionic
  9. - focal
  10. - name: Debian
  11. version:
  12. - oldstable
  13. - stable
  14. - name: EL (CenOS)
  15. versions:
  16. - 7
  17. - 8
  18. - name: opensuse
  19. vesrion:
  20. - tumbleweed
  21. - 15.2

Requirements

None.

Role Variables

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

Dependencies

min_ansible_version: 2.8

HowTo

How to install role

Over ansible-galaxy:

  1. ansible-galaxy install don_rumata.ansible_role_install_snap

Over bash+git:

  1. 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:

  1. - name: Install Snap
  2. hosts: all
  3. strategy: free
  4. serial:
  5. - "100%"
  6. roles:
  7. - don_rumata.ansible_role_install_snap
  8. tasks:

install-firefox-over-snap.yml:

  1. - name: Install FireFox
  2. hosts: all
  3. strategy: free
  4. serial:
  5. - "100%"
  6. roles:
  7. - don_rumata.ansible_role_install_snap
  8. tasks:
  9. - name: Install FF over snap
  10. become: yes
  11. snap:
  12. name: firefox
  13. state: present
  14. tags:
  15. - firefox
  16. - snap

License

Apache License, Version 2.0

Author Information

don Rumata

TODO

  • Add tests.
  • Add more tests.