Skip to content
Snippets Groups Projects
Commit 3b51f6a4 authored by Chris Hines's avatar Chris Hines
Browse files

use an agent so we can ssh properly

parent 690e1de6
No related branches found
No related tags found
3 merge requests!518modifications to playbooks because 1. we're not using ldap 2. we're mounting...,!517modifications to playbooks because 1. we're not using ldap 2. we're mounting...,!513modifications to playbooks because 1. we're not using ldap 2. we're mounting...
...@@ -116,6 +116,8 @@ ansible_create_cluster_stage: ...@@ -116,6 +116,8 @@ ansible_create_cluster_stage:
- python3 ./make_files.py ./inventory.yml ./infra/os_vars.yml ./vars/versions.yml - python3 ./make_files.py ./inventory.yml ./infra/os_vars.yml ./vars/versions.yml
- ssh-keygen -R `cat ssh.cfg | grep Proxy | cut -f 2 -d "@"` - ssh-keygen -R `cat ssh.cfg | grep Proxy | cut -f 2 -d "@"`
- ssh-keyscan -H `cat ssh.cfg | grep Proxy | cut -f 2 -d "@"` >> ~/.ssh/known_hosts - ssh-keyscan -H `cat ssh.cfg | grep Proxy | cut -f 2 -d "@"` >> ~/.ssh/known_hosts
- eval `ssh-agent`
- ssh-add ./tmp_key
#- ssh `cat ssh.cfg | grep Proxy | cut -f 2 -d "="` -i ./tmp_key -o StrictHostKeyChecking=no exit 0 #- ssh `cat ssh.cfg | grep Proxy | cut -f 2 -d "="` -i ./tmp_key -o StrictHostKeyChecking=no exit 0
- export ANSIBLE_HOST_KEY_CHECKING=False - export ANSIBLE_HOST_KEY_CHECKING=False
- ansible-playbook -i inventory.yml --key-file ./tmp_key upgrade_and_reboot.yml - ansible-playbook -i inventory.yml --key-file ./tmp_key upgrade_and_reboot.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment