diff options
Diffstat (limited to 'deploy/adapters/ansible/roles/ceilometer_compute/tasks/main.yml')
-rw-r--r-- | deploy/adapters/ansible/roles/ceilometer_compute/tasks/main.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/ceilometer_compute/tasks/main.yml b/deploy/adapters/ansible/roles/ceilometer_compute/tasks/main.yml new file mode 100644 index 00000000..4fddd1e6 --- /dev/null +++ b/deploy/adapters/ansible/roles/ceilometer_compute/tasks/main.yml @@ -0,0 +1,17 @@ +--- +- include_vars: "{{ ansible_os_family }}.yml" + +- name: install ceilometer packages + action: "{{ ansible_pkg_mgr }} name={{ item }} state=present" + with_items: "{{ ceilometer_packages }}| union(packages_noarch)" + +- name: copy ceilometer configs + template: src={{ item.src}} dest=/opt/os_templates + with_items: "{{ ceilometer_configs_templates }}" + +- name: update ceilometer configs + shell: crudini --merge {{ item.1 }} < /opt/os_templates/{{ item.0.src }} + with_subelements: + - ceilometer_configs_templates + - dest + notify: restart ceilometer relation service |