- name: Build containers hosts: localhost gather_facts: false vars: force: false force_rm: false cache: false repository: tiptop:5000 tasks: #- name: Read conf # ansible.builtin.include_vars: # file: prod.yaml # name: conf - name: Using the variables ansible.builtin.debug: var: force_rm - name: Build the base image, only with python dependencies containers.podman.podman_image: name: treetrail-backend-deps state: build path: "{{ playbook_dir }}" build: format: oci force_rm: "{{ force_rm }}" cache: "{{ cache }}" file: Containerfile.deps push: true push_args: dest: "{{ repository }}/treetrail-backend-deps" - name: Build the backend base container image containers.podman.podman_image: name: treetrail-backend state: build force: true path: "{{ playbook_dir }}" build: format: oci force_rm: "{{ force_rm }}" cache: "{{ cache }}" file: Containerfile push: true push_args: dest: "{{ repository }}/treetrail-backend"