Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
c0ntax committed May 22, 2018
2 parents 9c22b12 + 8351b57 commit 0ec018a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ Role Variables

Things that you might want to change:

```yaml
wiremock_install: true
```
By default, this role will install wiremock, but setting this to false will skip installation. (So that you can skip it on production environments for example)
```yaml
wiremock_daemon: true
```
Expand Down Expand Up @@ -84,7 +90,7 @@ Example Playbook

- hosts: servers
roles:
- { role: c0ntax.wiremock }
- { role: c0ntax.wiremock, wiremock_install: true, wiremock_daemon: true }

License
-------
Expand Down
4 changes: 3 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
---
# defaults file for wiremock

wiremock_install: true
wiremock_daemon: true

wiremock_version: 2.17.0
wiremock_src: "http://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/{{ wiremock_version }}/wiremock-standalone-{{ wiremock_version }}.jar"
wiremock_original: "/usr/share/java/wiremock-standalone-{{ wiremock_version }}.jar"
wiremock_dest: /usr/share/java/wiremock-standalone.jar
wiremock_daemon: true
wiremock_service_state: started
wiremock_root_dir: /var/wiremock
wiremock_user: nobody
Expand Down
3 changes: 2 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
# tasks file for wiremock

- include: install.yml
when: wiremock_install
- include: configure.yml
when: wiremock_daemon
when: wiremock_install and wiremock_daemon

0 comments on commit 0ec018a

Please sign in to comment.