feat: add uptime-kuma pull, logrotate deploy task, logrotate package
- Add uptime_kuma_image to image pull loop in services/tasks/main.yml - Add logrotate deploy task to services/tasks/configs.yml - Add logrotate package to base_packages Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
aa9706bbc4
commit
a344998405
3 changed files with 10 additions and 0 deletions
|
|
@ -22,3 +22,4 @@ base_packages:
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
- gnupg
|
- gnupg
|
||||||
- lsb-release
|
- lsb-release
|
||||||
|
- logrotate
|
||||||
|
|
|
||||||
|
|
@ -161,6 +161,14 @@
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
notify: Restart stack
|
notify: Restart stack
|
||||||
|
|
||||||
|
- name: Deploy Traefik logrotate config
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: logrotate/traefik.j2
|
||||||
|
dest: /etc/logrotate.d/traefik
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0644"
|
||||||
|
|
||||||
- name: Create acme.json for Let's Encrypt certificates
|
- name: Create acme.json for Let's Encrypt certificates
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ services_root }}/traefik/acme.json"
|
path: "{{ services_root }}/traefik/acme.json"
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
- "{{ crowdsec_image }}"
|
- "{{ crowdsec_image }}"
|
||||||
- "{{ crowdsec_bouncer_image }}"
|
- "{{ crowdsec_bouncer_image }}"
|
||||||
- "{{ authelia_image }}"
|
- "{{ authelia_image }}"
|
||||||
|
- "{{ uptime_kuma_image }}"
|
||||||
register: pull_result
|
register: pull_result
|
||||||
changed_when: "'Status: Downloaded newer image' in pull_result.stdout"
|
changed_when: "'Status: Downloaded newer image' in pull_result.stdout"
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue