mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
bd96616e6f
* snap_alias - manage snap aliases * removed extraneous import * executing the module, the new way * added link and bot entry * scaffolding from snap * completed module + integration tests * fixed sanity checks * Update plugins/modules/packaging/os/snap_alias.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/packaging/os/snap_alias.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/packaging/os/snap_alias.py Co-authored-by: Felix Fontein <felix@fontein.de> * removed extraneous task from test * added seealso, removed unused import * added check_mode + plus check_mode and idempotency tests * Update plugins/modules/packaging/os/snap_alias.py Co-authored-by: Felix Fontein <felix@fontein.de> * Improved RETURN description. Co-authored-by: Felix Fontein <felix@fontein.de>
21 lines
364 B
YAML
21 lines
364 B
YAML
---
|
|
- name: Install snapd
|
|
package:
|
|
name: "{{ snap_packages }}"
|
|
state: present
|
|
notify: Remove snapd
|
|
|
|
- name: Make sure that snapd is running
|
|
service:
|
|
name: snapd
|
|
state: started
|
|
|
|
- name: Create link /snap
|
|
file:
|
|
src: /var/lib/snapd/snap
|
|
dest: /snap
|
|
state: link
|
|
|
|
- name: Inform that snap is installed
|
|
set_fact:
|
|
has_snap: true
|