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