| --- |
| - 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 |