Skip to content

Commit 68d7890

Browse files
committed
Refactor the incus playbook to role structure
Signed-off-by: Markus Katharina Brechtel <[email protected]>
1 parent c8f7867 commit 68d7890

File tree

11 files changed

+286
-298
lines changed

11 files changed

+286
-298
lines changed

ansible/books/incus.yaml

-292
This file was deleted.

ansible/files/incus/incus.servers.tpl

-5
This file was deleted.

roles/incus/defaults/main.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
incus_release: 'stable'
3+
incus_roles: []
4+
incus_init: '{}'
5+
incus_ip_address: "{{ ansible_default_ipv6['address'] | default(ansible_default_ipv4['address']) }}"
6+
incus_name: ''
File renamed without changes.

roles/incus/handlers/main.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
- name: Update apt
3+
apt:
4+
force_apt_get: yes
5+
update_cache: yes
6+
cache_valid_time: 0
7+
8+
- name: Restart Incus
9+
systemd:
10+
name: incus.service
11+
state: restarted

0 commit comments

Comments
 (0)