You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
612 B

  1. ---
  2. - name: cluster/configure | Ensure the vault directories exist
  3. file:
  4. dest: "{{ item }}"
  5. owner: vault
  6. mode: 0750
  7. state: directory
  8. recurse: true
  9. with_items:
  10. - "{{ vault_base_dir }}"
  11. - "{{ vault_cert_dir }}"
  12. - "{{ vault_config_dir }}"
  13. - "{{ vault_roles_dir }}"
  14. - "{{ vault_secrets_dir }}"
  15. - "{{ vault_log_dir }}"
  16. - "{{ vault_lib_dir }}"
  17. - name: cluster/configure | Lay down the configuration file
  18. copy:
  19. content: "{{ vault_config | to_nice_json(indent=4) }}"
  20. dest: "{{ vault_config_dir }}/config.json"
  21. mode: 0640
  22. register: vault_config_change