optimizes Stirling PDF resource uses

This commit is contained in:
2026-01-27 11:42:52 +01:00
parent 71b854bbbc
commit 9ecc9fa5ca
3 changed files with 48 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
- name: Deploy stirling-pdf only
hosts: cit-docker-host
tasks:
- name: Run docker compose down for stirling-pdf
ansible.builtin.command:
cmd: /usr/bin/docker compose --project-directory "/ansible_docker_compose/projects/stirling-pdf" --project-name "stirling-pdf" down
chdir: "/ansible_docker_compose/projects/stirling-pdf"
become: true
changed_when: true
- name: Deploy stirling-pdf project files
ansible.posix.synchronize:
src: "../docker_compose_applications/stirling-pdf/"
dest: "/ansible_docker_compose/projects/stirling-pdf/"
mode: push
archive: false
copy_links: false
delete: true
dirs: false
existing_only: false
recursive: true
owner: false
group: false
perms: true
links: true
times: false
verify_host: true
become: true
- name: Run docker compose up for stirling-pdf
ansible.builtin.command:
cmd: /usr/bin/docker compose --project-directory "/ansible_docker_compose/projects/stirling-pdf" --project-name "stirling-pdf" up --detach --pull always --build --force-recreate
chdir: "/ansible_docker_compose/projects/stirling-pdf"
become: true
changed_when: true