1 ##############################################################################
2 # Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
10 - include_vars: "{{ ansible_os_family }}.yml"
15 dest: /opt/os_templates
20 - name: update ceilometer configs
21 shell: crudini --merge {{ item.dest }} < /opt/os_templates/{{ item.src }}
24 dest: /etc/nova/nova.conf
25 notify: restart nova service
29 path: /opt/os_templates/nova.conf.j2
32 - name: write services to monitor list
33 lineinfile: dest=/opt/service create=yes line='{{ item }}'
34 with_items: ceilometer_services
36 - meta: flush_handlers