This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangzhihan-device-manageme…/roles/influxdb/tasks/main.yml
zhangzhihan 960bdaa91f create
2020-01-17 15:35:48 +08:00

34 lines
796 B
YAML

- name: "copy influxdb.rpm to destination server"
copy:
src: "{{ role_path }}/files/"
dest: /tmp
- name: "install influxdb"
yum:
name:
- /tmp/influxdb-1.7.7.x86_64.rpm
state: present
- name: "bak original influxdb.conf"
shell: cd /etc/influxdb;mv influxdb.conf influxdb.conf_original
- name: "Templates influxdb.conf"
template:
src: "{{role_path}}/templates/influxdb.conf.j2"
dest: /etc/influxdb/
tags: template
- name: "Start influxdb"
systemd:
name: influxdb.service
state: started
enabled: yes
- name: "script set_influxdb_cluster.sh"
script: "{{role_path}}//files/set_influxdb_cluster.sh"
when: influxdb.cluster_agent is defined
- name: "script set_influxdb_blade00.sh"
script: "{{role_path}}//files/set_influxdb_blade00.sh"