Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/setup_snap/tasks/default.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - name: Install snapd (default)
7 package:
8 name: "{{ snap_packages }}"
9 state: present
10 notify: Remove snapd
11
12 - name: Make sure that snapd is running
13 service:
14 name: snapd
15 state: started
16
17 - name: Create link /snap
18 file:
19 src: /var/lib/snapd/snap
20 dest: /snap
21 state: link
22
23 - name: Inform that snap is installed
24 set_fact:
25 has_snap: true