diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-20 21:09:02 +0100 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-20 21:09:02 +0100 |
commit | 56670cd032559ea715cc3186ad0adbd33dd3a887 (patch) | |
tree | 80ab7f2fd5927de5b77fd16ccd1b52fa6446c432 /roles/install_monitoring/tasks/install_ffmyk-influx.yml | |
parent | 354f025149be9923441af9f64cf153b21f46aff5 (diff) |
install_monitoring: split different monitoring solutions into different task files
Diffstat (limited to 'roles/install_monitoring/tasks/install_ffmyk-influx.yml')
-rw-r--r-- | roles/install_monitoring/tasks/install_ffmyk-influx.yml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/roles/install_monitoring/tasks/install_ffmyk-influx.yml b/roles/install_monitoring/tasks/install_ffmyk-influx.yml new file mode 100644 index 0000000..3177d84 --- /dev/null +++ b/roles/install_monitoring/tasks/install_ffmyk-influx.yml @@ -0,0 +1,48 @@ +--- +- name: create ffmyk-influx folder + file: + path: /opt/ffmyk-influx + state: directory + +- name: copy ffmyk-influx daemon.sh + copy: + src: ffmyk-influx/daemon.sh + dest: /opt/ffmyk-influx/daemon.sh + mode: 0755 + +- name: copy ffmyk-influx php.ini + copy: + src: ffmyk-influx/php.ini + dest: /opt/ffmyk-influx/php.ini + +- name: copy ffmyk-influx systemd service + copy: + src: ffmyk-influx/ffmyk-influx.service + dest: /etc/systemd/system/ffmyk-influx.service + +- name: copy ffmyk-influx dhcp.php + template: + src: ffmyk-influx/dhcp.php.j2 + dest: /opt/ffmyk-influx/dhcp.php + +- name: copy ffmyk-influx fastd.php + template: + src: ffmyk-influx/fastd.php.j2 + dest: /opt/ffmyk-influx/fastd.php + +- name: copy ffmyk-influx func.php + template: + src: ffmyk-influx/func.php.j2 + dest: /opt/ffmyk-influx/func.php + +- name: copy ffmyk-influx traffic.php + template: + src: ffmyk-influx/traffic.php.j2 + dest: /opt/ffmyk-influx/traffic.php + +- name: start and enable ffmyk-influx.service + systemd: + name: ffmyk-influx.service + enabled: yes + state: started + |