blob: 22d94fb9b6b4124c4c6f2ffdf3393710cccffed6 [file] [log] [blame]
rdudyala996d70b2016-10-13 17:40:55 +00001---
2- hosts: 127.0.0.1
3 connection: local
4 gather_facts: False
5 user: ubuntu
6 vars:
7 monitoringagents:
8 {% for agent in agents %}
9 - url: {{ agent.url }}
10 body: {{ agent.body }}
11 {% endfor %}
12
13 tasks:
Srikanth Vavilapalli3a289602016-12-16 01:44:43 +000014# - name: debug
15# debug: msg=" {{ '{{' }} item {{ '}}' }} "
16# with_items: " {{ '{{' }} monitoringagents {{ '}}' }} "
rdudyala996d70b2016-10-13 17:40:55 +000017
18 - name: starting openstack service monitoring agent
19 uri:
20 url: "{{ '{{' }} item.url {{ '}}' }}"
21 method: POST
22 body: "{{ '{{' }} item.body {{ '}}' }}"
23 force_basic_auth: yes
24 status_code: 200
25 body_format: json
26 with_items: " {{ '{{' }} monitoringagents {{ '}}' }} "
27