I am automating Canonical Kubernetes installation with Ansible. The intallation process required snap to be present on the host.
Is there a standard way to install snap packages with Ansible already?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With