| 123456789101112131415161718192021222324252627282930 |
- - name: Upload php-fpm.sh
- ansible.builtin.template:
- src: containers/php-fpm.sh.j2
- dest: "{{ app_deploy_target }}/scripts/php-fpm.sh"
- mode: "0555"
- - name: Stop php-fpm worker
- containers.podman.podman_container:
- name: "{{ app_domain }}-fpm-{{ app_php_fpm_port }}"
- state: absent
- - name: Create php-fpm worker
- containers.podman.podman_container:
- name: "{{ app_domain }}-fpm-{{ app_php_fpm_port }}"
- image: "{{ app_mint_image_name }}"
- command: "{{ app_deploy_target }}/scripts/php-fpm.sh"
- ports:
- - "0.0.0.0:{{ app_php_fpm_port }}:9000/tcp"
- volumes:
- - "{{ app_deploy_target }}:{{ app_deploy_target }}:z"
- workdir: "{{ app_deploy_target }}"
- # auto_remove: true
- state: present
- generate_systemd:
- path: "{{ ansible_env.HOME }}/.config/systemd/user"
- container_prefix: "{{ app_container_prefix }}"
- new: true
- names: true
- restart_policy: always
- stop_timeout: 120
|