add recipya setup
This commit is contained in:
parent
957000d3c2
commit
c4c5ab0e2a
7 changed files with 109 additions and 0 deletions
37
roles/any.software.recipya-podman/tasks/main.yml
Normal file
37
roles/any.software.recipya-podman/tasks/main.yml
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
- name: Ensure configuration directory is present
|
||||
ansible.builtin.file:
|
||||
path: '/etc/recipya'
|
||||
state: directory
|
||||
mode: '0755'
|
||||
owner: 'debian'
|
||||
group: 'debian'
|
||||
become: true
|
||||
|
||||
- name: Ensure config file is present
|
||||
ansible.builtin.copy:
|
||||
src: 'config.json'
|
||||
dest: '/etc/recipya/config.json'
|
||||
mode: '0644'
|
||||
owner: 'debian'
|
||||
group: 'debian'
|
||||
notify: 'restart recipya'
|
||||
|
||||
- name: Ensure Quadlet files are present
|
||||
ansible.builtin.template:
|
||||
src: "recipya.container.j2"
|
||||
dest: "/home/debian/.config/containers/systemd/recipya.container"
|
||||
mode: '0755'
|
||||
owner: 'debian'
|
||||
group: 'debian'
|
||||
notify: 'restart recipya'
|
||||
|
||||
- name: Ensure Caddyfile is present
|
||||
ansible.builtin.copy:
|
||||
src: 'recipya.Caddyfile'
|
||||
dest: '/etc/caddy/recipya.Caddyfile'
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
become: true
|
||||
notify: reload caddy
|
||||
Loading…
Add table
Add a link
Reference in a new issue