From c7203f58ff1cdbb99b1d80dc427fda011b417535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20M=C3=BCller?= Date: Tue, 1 Jun 2021 19:11:48 +0200 Subject: [PATCH] fix: influxdb connection issue --- .gitignore | 1 + play.yml | 7 +++++++ roles/cobald/tasks/influxdb.yml | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d3d1782..ceb93fa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .*.swp *.retry +vars_auth.yml diff --git a/play.yml b/play.yml index 0ddbe8b..05556cc 100644 --- a/play.yml +++ b/play.yml @@ -1,5 +1,6 @@ --- - hosts: all + vars_files: ['vars-auth.yml'] tasks: - name: "install epel repo" # for htop etc. yum: @@ -11,6 +12,12 @@ name: [ vim-enhanced, htop, screen, bind-utils, nmap-ncat, net-tools ] state: present + - name: "install ssh-key" + authorized_key: + user: thoto + key: "{{ssh_key}}" + state: present + - hosts: htcondor pre_tasks: - name: "install htcondor repo" diff --git a/roles/cobald/tasks/influxdb.yml b/roles/cobald/tasks/influxdb.yml index 65a95dc..c86fa77 100644 --- a/roles/cobald/tasks/influxdb.yml +++ b/roles/cobald/tasks/influxdb.yml @@ -36,7 +36,8 @@ - add_host: name: ed-influxdb-2 ansible_connection: docker - ansible_docker_extra_args: "-H=ssh://ed-c7-1.virt.magni.thoto.net" # FIXME + # ansible_docker_extra_args: "-H=ssh://ed-c7-1.virt.magni.thoto.net" # FIXME + ansible_docker_extra_args: "-H=ssh://{{ansible_host}}" # FIXME changed_when: False - wait_for: # FIXME: does not work right -> fetch token fails