fix: influxdb connection issue

This commit is contained in:
2021-06-01 19:11:48 +02:00
parent 2e0d83cca1
commit c7203f58ff
3 changed files with 10 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
.*.swp
*.retry
vars_auth.yml

View File

@@ -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"

View File

@@ -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