Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EXEC sshpass -d29 ssh -C -vvv
- -o ControlMaster=auto
- -o ControlPersist=60s
- -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no
- -o Port=58030
- -o User=em7admin
- -o ConnectTimeout=30 127.0.0.1 /bin/sh
- -c 'sudo -H -p "[sudo via ansible, key=mxraphooaxhpruunceorxkcelobceggf] password: "
- -S -u root /bin/sh
- -c '"'"'echo BECOME-SUCCESS-mxraphooaxhpruunceorxkcelobceggf; LANG=C LC_MESSAGES=C LC_CTYPE=C /usr/bin/python'"'"''
- debug1: Sending command: /bin/sh -c 'sudo -H -p "[sudo via ansible, key=mxraphooaxhpruunceorxkcelobceggf] password: " -S -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-mxraphooaxhpruunceorxkcelobceggf; LANG=C LC_MESSAGES=C LC_CTYPE=C /usr/bin/python'"'"''
- debug2: channel 2: request exec confirm 1
- debug3: mux_session_confirm: sending success reply
- debug2: callback done
- debug2: channel 2: open confirm rwindow 0 rmax 32768
- debug1: mux_client_request_session: master session id: 2
- debug2: channel 2: rcvd adjust 2097152
- debug2: channel_input_status_confirm: type 99 id 2
- debug2: exec request accepted on channel 2
- debug2: channel 2: read<=0 rfd 6 len 0
- debug2: channel 2: read failed
- debug2: channel 2: close_read
- debug2: channel 2: input open -> drain
- debug2: channel 2: ibuf empty
- debug2: channel 2: send eof
- debug2: channel 2: input drain -> closed
- debug2: channel 2: rcvd ext data 67
- [sudo via ansible, key=mxraphooaxhpruunceorxkcelobceggf] password: debug2: channel 2: written 67 to efd 8
- debug2: channel 2: rcvd ext data 18
- debug2: channel 2: rcvd ext data 67
- Sorry, try again.n[sudo via ansible, key=mxraphooaxhpruunceorxkcelobceggf] password: debug2: channel 2: written 85 to efd 8
- debug2: channel 2: rcvd ext data 18
- debug2: channel 2: rcvd ext data 67
- Sorry, try again.n[sudo via ansible, key=mxraphooaxhpruunceorxkcelobceggf] password: debug2: channel 2: written 85 to efd 8
- debug2: channel 2: rcvd ext data 18
- debug2: channel 2: rcvd ext data 36
- Sorry, try again.nsudo: 3 incorrect password attemptsndebug2: channel 2: written 54 to efd 8
- debug1: client_input_channel_req: channel 2 rtype exit-status reply 0
- debug3: mux_exit_message: channel 2: exit message, exitval 1
- debug1: client_input_channel_req: channel 2 rtype eow@openssh.com reply 0
- - hosts: devices
- gather_facts: False
- pre_tasks:
- - name: Get ephemeral port
- local_action: ephemeral_port
- register: ephemeral_port
- - name: Run local ssh command to enable proxy
- local_action: shell /usr/bin/ssh -p {{proxy_port}} -o 'HostKeyAlias=[{{proxy_ip}}]:{{proxy_port}}' -o 'UserKnownHostsFile=/home/user/.ssh/known_hosts' -i /home/user/.ssh/id_dsa -o 'ConnectTimeout=5' -o 'ControlMaster=auto' -o 'ControlPath=%r@%h:%p' -o 'ControlPersist=10s' -f -N -l binc -L {{ephemeral_port.port}}:{{silo_private_ip}}:22 {{proxy_ip}}
- - name: Change ansible port to ephemeral port
- set_fact:
- ansible_port: "{{ephemeral_port.port}}"
- tasks:
- - name: test
- sudo: yes
- shell: hostname
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement