Browse Source

ymls

master
lefos 3 years ago
parent
commit
da588d244f
  1. 0
      inventory.yml
  2. 6
      monitorall.yml.sh

0
inventory.yml

6
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

Loading…
Cancel
Save