diff --git a/monitorall.yml b/mongo.yml similarity index 100% rename from monitorall.yml rename to mongo.yml diff --git a/monitorall.yml.sh b/monitorall.yml.sh index b137483..a666b26 100644 --- a/monitorall.yml.sh +++ b/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 diff --git a/node.yml b/node.yml new file mode 100644 index 0000000..4a26812 --- /dev/null +++ b/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 \ No newline at end of file