ansible-role-sonarqube/tasks/config.yml

24 lines
609 B
YAML
Raw Normal View History

2023-04-28 00:32:36 +02:00
---
- name: "SONARQUBE | Set up directories"
ansible.builtin.file:
state: directory
path: "{{ item }}"
owner: "{{ ansible_effective_user_id }}"
group: "{{ ansible_effective_group_id }}"
mode: "0750"
with_items:
- "{{ sonarqube_skeleton_paths }}"
tags:
- sonarqube_configure
become: true
- name: "SONARQUBE | Write configuration files"
ansible.builtin.template:
src: "{{ item }}.j2"
2023-04-28 01:12:26 +02:00
dest: "{{ sonarqube_config_path | expanduser | realpath }}/{{ item }}"
2023-04-28 00:32:36 +02:00
mode: '0640'
with_items:
- "{{ sonarqube_configuration_files }}"
tags:
- sonarqube_configure