Skip to content
Browse files

[collectd] clone browbeat if it doesn't exists

Right now when collectd role is running on each node it tries to
copy browbeat from the host it's running on but browbeat was
never cloned/copied there so it fail with:

"Could not find or access '/home/stack/browbeat'"

This change fixes it by cloning browbeat on each host where the role
is running.

Change-Id: I5034029cb4fb2000f4e09781a46c769842041e1a
  • Loading branch information
bregman-arie committed Dec 6, 2019
1 parent 0fa8454 commit d75c54da676b7ba4ecf8c7a7263b73344d8b02d4
Showing with 5 additions and 4 deletions.
  1. +5 −4 ansible/install/roles/collectd/tasks/main.yml
@@ -53,10 +53,11 @@
path: "{{ ansible_user_dir }}/browbeat/browbeat-containers/collectd-openstack"
register: directory_exists

- name: Copy browbeat-containers directory if it doesn't exist
src: "{{ browbeat_path }}/browbeat-containers/collectd-openstack"
dest: "{{ ansible_user_dir }}/browbeat/browbeat-containers"
- name: Clone browbeat if it doesn't exists on host
dest: "{{ ansible_user_dir }}/browbeat"
version: master
when: not (directory_exists.stat.isdir is defined and directory_exists.stat.isdir)

- name: Create configuration directory

0 comments on commit d75c54d

Please sign in to comment.
You can’t perform that action at this time.