From da588d244fbd6991ff67c8a8b3d5c439f1637034 Mon Sep 17 00:00:00 2001 From: lefos Date: Tue, 26 Oct 2021 21:27:21 +0300 Subject: [PATCH] ymls --- inventory.yml | 0 monitorall.yml.sh | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 inventory.yml diff --git a/inventory.yml b/inventory.yml new file mode 100644 index 0000000..e69de29 diff --git a/monitorall.yml.sh b/monitorall.yml.sh index c34ed27..0770bcf 100644 --- a/monitorall.yml.sh +++ b/monitorall.yml.sh @@ -11,12 +11,12 @@ sudo cp files/ansible.cfg /etc/ansible/ansible.cfg ip4=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) ip6=$(/sbin/ip -o -6 addr list eth0 | awk '{print $4}' | cut -d/ -f1) -echo "[service]" > /project/courses/fluentd/inventory.yml -/project/bin/swarmlab-nmap >> /project/courses/fluentd/inventory.yml +echo "[service]" > /project/courses/Thesis/inventory.yml +/project/bin/swarmlab-nmap >> /project/courses/Thesis/inventory.yml # include master or not -echo $ip4 >> /project/courses/fluentd/inventory.yml +echo $ip4 >> /project/courses/Thesis/inventory.yml ansible-playbook -u docker -i inventory.yml fluentd.yml -f 5 --ask-pass --ask-become-pass # 1st make sudo without password