aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/influxdb/tasks/config.yml
blob: f9b7544f89f97adadda9066427891e381b5671f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
- name: Ensuring config directories exist
  file:
    path: "{{ node_config_directory }}/influxdb"
    state: "directory"
    recurse: yes
  when: inventory_hostname in groups['influxdb']

- name: Copying over config.json files
  template:
    src: "{{ item  }}.json.j2"
    dest: "{{ node_config_directory }}/influxdb/config.json"
  when: inventory_hostname in groups['influxdb']
  with_items:
    - influxdb

- name: Copying over influxdb config file
  template:
    src: "{{ role_path }}/templates/{{ item }}.conf.j2"
    dest: "{{ node_config_directory }}/influxdb/influxdb.conf"
  when: inventory_hostname in groups['influxdb']
  with_items:
    - influxdb