any.software.baikal-podman: added role
This commit is contained in:
parent
44154d337f
commit
744568e446
6 changed files with 82 additions and 0 deletions
39
roles/any.software.baikal-podman/tasks/main.yml
Normal file
39
roles/any.software.baikal-podman/tasks/main.yml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
- name: Ensure data directories are present
|
||||
ansible.builtin.file:
|
||||
path: '{{ item }}'
|
||||
state: directory
|
||||
mode: '0755'
|
||||
owner: 'debian'
|
||||
group: 'debian'
|
||||
become: true
|
||||
loop:
|
||||
- '{{ baikal_specific_dir }}'
|
||||
- '{{ baikal_config_dir }}'
|
||||
|
||||
- name: Ensure Quadlet files are present
|
||||
ansible.builtin.template:
|
||||
src: "baikal.container.j2"
|
||||
dest: "/home/debian/.config/containers/systemd/baikal.container"
|
||||
mode: '0755'
|
||||
owner: 'debian'
|
||||
group: 'debian'
|
||||
notify: 'restart baikal'
|
||||
|
||||
- name: Ensure Caddyfile is present
|
||||
ansible.builtin.copy:
|
||||
src: 'baikal.Caddyfile'
|
||||
dest: '/etc/caddy/baikal.Caddyfile'
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
become: true
|
||||
notify: 'reload caddy'
|
||||
|
||||
# - name: Ensure backup script is present
|
||||
# ansible.builtin.copy:
|
||||
# src: 'baikal.backup.sh'
|
||||
# dest: '/etc/backups/baikal.backup.sh'
|
||||
# owner: 'root'
|
||||
# group: 'root'
|
||||
# mode: '0644'
|
||||
Loading…
Add table
Add a link
Reference in a new issue