feat: add basic httpbin services
Used to test connectivity of proxies
This commit is contained in:
parent
314fce4757
commit
137075ee6f
9 changed files with 149 additions and 0 deletions
20
roles/httpbin/tasks/main.yml
Normal file
20
roles/httpbin/tasks/main.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue