From 576d3e9af941fdeb3b6c102b1d9752ce1a77f902 Mon Sep 17 00:00:00 2001 From: lefos Date: Sun, 31 Oct 2021 23:15:20 +0200 Subject: [PATCH] node try --- monitorall.yml => mongo.yml | 0 monitorall.yml.sh | 7 ++++++- node.yml | 13 +++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) rename monitorall.yml => mongo.yml (100%) create mode 100644 node.yml 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