Browse Source

node try

master
lefos 3 years ago
parent
commit
576d3e9af9
  1. 0
      mongo.yml
  2. 7
      monitorall.yml.sh
  3. 13
      node.yml

0
monitorall.yml → mongo.yml

7
monitorall.yml.sh

@ -20,7 +20,12 @@ echo "[service]" > /project/courses/Thesis/inventory.yml
# include master or not
echo $ip4 >> /project/courses/Thesis/inventory.yml
ansible-playbook -u docker -i inventory.yml monitorall.yml -f 5 --ask-pass --ask-become-pass
#dummy
ansible-playbook -u docker -i inventory.yml node.yml -f 5 --ask-pass --ask-become-pass
#mongo
# ansible-playbook -u docker -i inventory.yml mongo.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

13
node.yml

@ -0,0 +1,13 @@
---
- hosts: service
remote_user: docker
gather_facts: no
vars:
user: "docker"
tasks:
- name: Copy files to workers
git:
repo: https://git.swarmlab.io:3000/Lefteris/dummyservice.git
dest: /project/courses
force: yes
Loading…
Cancel
Save