digitalboard.core/roles/httpbin/tasks/main.yml
Bert-Jan Fikse a4aa64777e
feat: add basic httpbin services
Used to test connectivity of proxies
2025-11-07 11:50:53 +01:00

20 lines
507 B
YAML

#SPDX-License-Identifier: MIT-0
---
# tasks file for httpbin
- name: Create docker compose directory
file:
path: "{{ httpbin_docker_compose_dir }}"
state: directory
mode: '0755'
- name: Create docker-compose file for httpbin
template:
src: docker-compose.yml.j2
dest: "{{ httpbin_docker_compose_dir }}/docker-compose.yml"
mode: '0644'
- name: Start httpbin container
community.docker.docker_compose_v2:
project_src: "{{ httpbin_docker_compose_dir }}"
state: present