Skip to content

c0ntax/ansible-role-mock-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Role Name

Downloads and runs Mock Server

Requirements

None

Role Variables

To configure the actual mock server

mock_server_server_port: 1080

Set this to listen for requests to mock. You must define either this and/or the proxy for the Mock Server to actually run

mock_server_proxy_port: 1090
mock_server_proxy_remote_port: 80
mock_server_proxy_remote_host: localhost

The above sets up the pass-through proxy

Dependencies

  • geerlingguy.java

Example Playbook

- hosts: servers
  roles:
     - { role: c0ntax.mock-server, mock_server_server_port: 1080 }

License

Apache 2.0