Added handler for snapd that installs listed snap packages after snapd itself is installed
This commit is contained in:
17
roles/bootstrap/handlers/snapd.yml
Normal file
17
roles/bootstrap/handlers/snapd.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# SPDX-License-Identifier: MIT-0
|
||||||
|
---
|
||||||
|
# handlers file for bootstrap
|
||||||
|
- name: Install all snapd applications
|
||||||
|
become: true
|
||||||
|
listen: snapd
|
||||||
|
block:
|
||||||
|
- name: Install snaps
|
||||||
|
community.general.snap:
|
||||||
|
channel: "{{ item.value['channel'] | default('latest/stable') }}"
|
||||||
|
name:
|
||||||
|
- "{{ item.value['name'] }}"
|
||||||
|
# @TODO test the below list extend method for list of lists
|
||||||
|
options: "{{ item.value['opts'] }}"
|
||||||
|
state: present
|
||||||
|
notify: "{{ item.key }}"
|
||||||
|
loop: "{{ lookup('ansible.builtin.dict', software.snaps) }}"
|
||||||
Reference in New Issue
Block a user