Gabe Black | 9062322 | 2017-01-18 19:52:28 +0000 | [diff] [blame^] | 1 | --- |
| 2 | - hosts: '{{ instance_host }}' |
| 3 | gather_facts: False |
| 4 | connection: ssh |
| 5 | user: ubuntu |
| 6 | sudo: yes |
| 7 | |
| 8 | tasks: |
| 9 | |
| 10 | - name: copy plugin |
| 11 | copy: src=ext_services/passivetest dest=/usr/lib/python2.7/dist-packages/ceilometer/network/ext_services |
| 12 | |
| 13 | - name: modify entry_points |
| 14 | lineinfile: |
| 15 | dest: /usr/lib/python2.7/dist-packages/ceilometer-6.0.0.egg-info/entry_points.txt |
| 16 | line: passivetest=ceilometer.network.ext_services.passivetest.notifications:PassiveTestNotification |
| 17 | insertafter: '^infra=.*' |
| 18 | |
| 19 | - name: restart ceilometer services |
| 20 | service: |
| 21 | name: ceilometer-agent-central |
| 22 | state: restarted |
| 23 | |
| 24 | - name: restart ceilometer services |
| 25 | service: |
| 26 | name: ceilometer-agent-notification |
| 27 | state: restarted |