Fix syntax error in deployer tasks

This commit is contained in:
Christer Warén
2025-07-24 13:39:51 +03:00
parent c5226ae375
commit d9daf4266c

View File

@@ -13,29 +13,29 @@
with_filetree: './files/nginx/' with_filetree: './files/nginx/'
loop_control: loop_control:
label: "{{ item.path }}" label: "{{ item.path }}"
when: when:
- item.state == 'directory' - item.state == 'directory'
tags: tags:
- nginx - nginx
- name: "Deployer - Nginx - Configure - Generating & Transferring Files" - name: "Deployer - Nginx - Configure - Generating & Transferring Files"
ansible.builtin.template: ansible.builtin.template:
src: '{{ item.src }}' src: '{{ item.src }}'
dest: '~/data/nginx/{{ item.path }}' dest: '~/data/nginx/{{ item.path }}'
with_filetree: './files/nginx/' with_filetree: './files/nginx/'
loop_control: loop_control:
label: "{{ item.path }}" label: "{{ item.path }}"
when: when:
- item.state == 'file' - item.state == 'file'
tags: tags:
- nginx - nginx
- name: "Deployer - Nginx - Pull Image" - name: "Deployer - Nginx - Pull Image"
containers.podman.podman_image: containers.podman.podman_image:
name: docker.io/library/nginx name: docker.io/library/nginx
tag: latest tag: latest
force: true force: true
register: deployerTask3 register: deployerTask3
- name: "Deployer - Nginx - Run Container" - name: "Deployer - Nginx - Run Container"
containers.podman.podman_container: containers.podman.podman_container: