ssl.yml 557 B

1234567891011121314151617181920
  1. ---
  2. # tasks/ssl.yml: Deploy the client SSL cert/key to client systems
  3. - include_vars: "{{ item }}"
  4. with_first_found:
  5. - "{{ ansible_distribution }}.yml"
  6. - include: ssl_generate.yml
  7. when: sensu_ssl_gen_certs
  8. - name: Deploy the Sensu client SSL cert/key
  9. copy:
  10. src: "{{ item }}"
  11. owner: "{{ sensu_user_name }}"
  12. group: "{{ sensu_group_name }}"
  13. dest: "{{ sensu_config_path }}/ssl"
  14. with_items:
  15. - "{{ sensu_ssl_client_cert }}"
  16. - "{{ sensu_ssl_client_key }}"
  17. notify: restart sensu-client service