]> git.immae.eu Git - github/fretlink/ansible-kong-app.git/commitdiff
README: add a Travis badge with build status 25/head
authorPaul Bonaud <paul.bonaud@fretlink.com>
Wed, 14 Oct 2020 08:51:41 +0000 (10:51 +0200)
committerPaul Bonaud <paul.bonaud@fretlink.com>
Wed, 14 Oct 2020 08:51:41 +0000 (10:51 +0200)
Also format yaml code with correct color syntax

README.md

index e02203f07ab9e94a6c5cd5e25b09c5e3df3653e2..080a320e3469096f8efa5e22a0399f49dc741bc6 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,6 +1,8 @@
 kong-app
 =========
 
+[![Build Status](https://travis-ci.com/fretlink/ansible-kong-app.svg?token=D3nFpUxMu7vStDHwUNy4&branch=master)](https://travis-ci.com/fretlink/ansible-kong-app)
+
 This role aims at creating, on a remote kong, a list of services, routes and plugins needed by an app. The API calls are made from the ansible target host. If you use `hosts: localhost` as a target from within your playbook then all API calls will be done from your local machine.
 
 Requirements
@@ -42,17 +44,18 @@ None
 Example Playbook
 ----------------
 
-    - hosts: localhost
-      roles:
-         - { role: kong-app,
-             kong_servers:
-               - kong_app_admin_url: http://localhost:8001,
-                 services:
-                   - name: example,
-                     url: http://example.com,
-                     plugins: [],
-                     routes: [ { hosts: [my.kong.example], paths: [/] } ]
-           }
+```yaml
+- hosts: localhost
+  roles:
+     - role: kong-app,
+       kong_servers:
+         - kong_app_admin_url: http://localhost:8001,
+           services:
+             - name: example,
+               url: http://example.com,
+               plugins: [],
+               routes: [ { hosts: [my.kong.example], paths: [/] } ]
+```
 
 Tests
 ----