Role za registrator bi moral delovati na fresh alpine installu

This commit is contained in:
polz 2025-07-30 17:11:37 +02:00
parent 57923a51ad
commit d5b6fe1d92
2 changed files with 69 additions and 11 deletions

View file

@ -58,17 +58,41 @@
dest: /home/registrator/registrator
force: yes
- name: Create log/data/config directories
file:
dest: "/home/registrator/{{ item }}"
owner: registrator
state: directory
loop:
- data
- logs
- spool
- registrator/spool
- name: Create config directory
file:
dest: "/home/registrator/registrator/conf"
owner: registrator
group: www-data
state: directory
mode: 0750
- name: Configure registrator settings
template:
dest: "/home/registrator/registrator/conf/{{ item }}"
src: "{{ item }}.j2"
owner: registrator
group: registrator
mode: 0600
group: www-data
mode: 0640
force: no
loop:
- loginconf.php
- name: Enable site for Apache
template:
dest: "/etc/apache2/conf.d/zzz-{{ dns_name }}.conf"
src: "zzz-registrator.conf.j2"
- name: Create utility / cronjob scripts
copy:
dest: "/home/registrator/{{ item }}"
@ -81,15 +105,6 @@
- push_siemens_to_spica.sh
- garaze_racunovodstvo.sh
- name: Create log/data directories
file:
dest: "/home/registrator/{{ item }}"
owner: registrator
loop:
- data
- logs
- spool
- name: Create garaze config
copy:
dest: "/home/registrator/garaze_recipients.txt"