---

- name: Install sensu config
  template: src=config.json.j2 dest=/etc/sensu/config.json

- name: Install sensu client config file
  template: src=client.json.j2 dest=/etc/sensu/conf.d/client.json

- name: Make sensu SSL directory
  file: path=/etc/sensu/ssl state=directory

- name: Copy across SSL cert
  copy: src=../files/cert.pem dest=/etc/sensu/ssl

- name: Copy across SSL key
  copy: src=../files/key.pem dest=/etc/sensu/ssl

- name: start sensu-client and ensure enabled=yes
  service: name=sensu-client state=started enabled=yes

---

- name: Install sensu RabbitMQ config
  template: src=rabbitmq.json.j2 dest=/etc/sensu/rabbitmq.json

- name: Install sensu client config file
  template: src=client.json.j2 dest=/etc/sensu/conf.d/client.json

- name: Make sensu SSL directory
  file: path=/etc/sensu/ssl state=directory

- name: Copy across SSL cert
  copy: src=../files/cert.pem dest=/etc/sensu/ssl

- name: Copy across SSL key
  copy: src=../files/key.pem dest=/etc/sensu/ssl

- name: start sensu-client and ensure enabled=yes
  service: name=sensu-client state=started enabled=yes

Fix up name of config file
Fix up name of config file
