Install snap packages with Ansible
The snap
module is available since version 2.8 of Ansible (released May 2019):
https://docs.ansible.com/ansible/latest/modules/snap_module.html#snap-module
The required task will be:
- name: Install conjure-up for Canonical Kubernetes
snap:
name: conjure-up
classic: yes
There is no snap module for ansible yet. You can install snap packages by using command
module.
- name: install heroku cli via snap
command: snap install heroku --classic