Skip to content

Commit

Permalink
fix: allow to generate single item of inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed Apr 1, 2024
1 parent 80ef659 commit 7cbcf18
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/group_vars/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,12 @@ tpl_supervisord_configs:
tpl_docker_tests:
- src: Dockerfiles/base/goss.yaml.j2
dst: "../dist/base/{{ php_version }}-{{ php_type }}-{{ os_name }}/goss.yaml"

tpl_docker_supervisor_tests:
- src: Dockerfiles/base/goss_wait.yaml
dst: "../dist/base/{{ php_version }}-supervisord-{{ os_name }}/goss_wait.yaml"


# Enabled extensions
#######################################
ext_native_enabled:
Expand Down
14 changes: 13 additions & 1 deletion src/roles/base/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,25 @@
with_items:
- "{{ tpl_supervisord_configs }}"

- name: Generate Dockerfile Goss tests
- name: Generate Dockerfile Goss tests for non-supervisord
ansible.builtin.template:
src: "{{ item.src }}"
dest: "{{ item.dst }}"
force: true
mode: "0644"
with_items:
- "{{ tpl_docker_tests }}"
when: php_type != 'supervisord'

- name: Generate Dockerfile Goss tests for supervisord
ansible.builtin.template:
src: "{{ item.src }}"
dest: "{{ item.dst }}"
force: true
mode: "0644"
with_items:
- "{{ tpl_docker_tests }}"
- "{{ tpl_docker_supervisor_tests }}"
when: php_type == 'supervisord'

...

0 comments on commit 7cbcf18

Please sign in to comment.