blob: b5bf5f949384950309f65f55e4b8644f550e1613 [file] [log] [blame]
---
- hosts: '{{ instance_host }}'
gather_facts: False
connection: ssh
user: ubuntu
sudo: yes
tasks:
- name: copy plugin
copy: src=ext_services/passivetest dest=/usr/lib/python2.7/dist-packages/ceilometer/network/ext_services
- name: modify entry_points
lineinfile:
dest: /usr/lib/python2.7/dist-packages/ceilometer-6.0.0.egg-info/entry_points.txt
line: passivetest=ceilometer.network.ext_services.passivetest.notifications:PassiveTestNotification
insertafter: '^infra=.*'
- name: restart ceilometer services
service:
name: ceilometer-agent-central
state: restarted
- name: restart ceilometer services
service:
name: ceilometer-agent-notification
state: restarted