mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
9a9b0b04a5
* Try some snap fixes. * Fix logic. * Try to run tests privileged. * Prevent failure on rc != 0. * Fix formatting. * Revert "Try to run tests privileged." This reverts commit77ca91f502
. * Try to run tests on RHEL instead. * Make sure that snapd is running. * Add changelog fragment. * str -> to_native. * Make sure that installed binary is actually found. * Add check mode tests. * Mention #2835 in changelog fragment. (cherry picked from commitc63dc624b7
) Co-authored-by: Felix Fontein <felix@fontein.de>
15 lines
268 B
YAML
15 lines
268 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: Inform that snap is installed
|
|
set_fact:
|
|
has_snap: true
|