From 8a14b7696e3651f37dcaf44cf195ca722ac092c1 Mon Sep 17 00:00:00 2001 From: cse47122 Date: Fri, 11 Jun 2021 18:34:40 +0000 Subject: [PATCH] Delete 'fluentd.yml.sh' --- fluentd.yml.sh | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 fluentd.yml.sh diff --git a/fluentd.yml.sh b/fluentd.yml.sh deleted file mode 100644 index 16f84d1..0000000 --- a/fluentd.yml.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -sudo apt update -y -sudo apt install -y ansible sshpass - -sudo mkdir -p /home/docker/.ansible -sudo chown docker.docker -R /home/docker - -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 - - -# include master or not -echo $ip4 >> /project/courses/fluentd/inventory.yml - - -ansible-playbook -u docker -i inventory.yml fluentd.yml -f 5 --ask-pass --ask-become-pass -# 1st make sudo without password -# run with keys -#ansible-playbook -u docker -i inventory.yml fluentd.yml -f 5 --private-key=/home/docker/.ssh/id_rsa