Replace yml.j2 template with copy and content
This commit is contained in:
parent
36a54fef3d
commit
4cc94969f5
12 changed files with 41 additions and 51 deletions
|
@ -7,16 +7,15 @@
|
|||
svc: "{{ influxdb_svc }}"
|
||||
env: "{{ influxdb_env }}"
|
||||
compose: "{{ influxdb_compose }}"
|
||||
yml: "{{ influxdb_yml }}"
|
||||
block:
|
||||
- name: Import prepare tasks for common service
|
||||
ansible.builtin.import_tasks: tasks/prepare-common-service.yml
|
||||
|
||||
- name: Template config
|
||||
ansible.builtin.template:
|
||||
src: yml.j2
|
||||
- name: Create config
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ (service_path, 'influxdb.yml') | path_join }}"
|
||||
mode: "0600"
|
||||
content: '{{ influxdb_yml | to_nice_yaml }}'
|
||||
mode: "0644"
|
||||
notify: Restart service {{ role_name }}
|
||||
|
||||
- name: Import start tasks for common service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue