Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "osProfile": {
- "computerName": "[concat('vm', copyIndex())]",
- "adminUsername": "[parameters('adminUsername')]",
- "adminPassword": "[parameters('adminPassword')]"
- },
- #RSAAuthentication yes
- #PubkeyAuthentication yes
- AuthorizedKeysFile .ssh/authorized_keys
- # To disable tunneled clear text passwords, change to no here!
- #PasswordAuthentication yes
- #PermitEmptyPasswords no
- PasswordAuthentication yes
- UsePAM yes
- [all]
- test01vm0 ansible_host=test01.cloudapp.azure.com ansible_port=50000
- test01vm1 ansible_host=test01.cloudapp.azure.com ansible_port=50001
- # ssh access
- ansible_connection: ssh
- [defaults]
- private_key_file=/home/pc/.ssh/id_rsa.pem
- - name: create initial groups for the oracle user
- become: yes
- group: name={{ item }} state=present
- with_items:
- - "{{ oracle_group }}"
- - "{{ oracle_dba_group }}"
- ansible-playbook oracle.yml -vvv --step --sudo
- <test01.cloudapp.azure.com> SSH: EXEC ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o Port=50000 -o 'IdentityFile="/home/pc/.ssh/id_rsa.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=admin -o ConnectTimeout=10 -o ControlPath=/home/pc/.ansible/cp/ansible-ssh-%h-%p-%r -tt test01.cloudapp.azure.com '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=kxsxqdhkkyuodnkvedsxmtozowbkltws] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-kxsxqdhkkyuodnkvedsxmtozowbkltws; LANG=en_IE.UTF-8 LC_ALL=en_IE.UTF-8 LC_MESSAGES=en_IE.UTF-8 /usr/bin/python /home/admin/.ansible/tmp/ansible-tmp-1453477752.42-279575317679267/group; rm -rf "/home/admin/.ansible/tmp/ansible-tmp-1453477752.42-279575317679267/" > /dev/null 2>&1'"'"'"'"'"'"'"'"''"'"''
- fatal: [test01vm0]: FAILED! => {"failed": true, "msg": "ERROR! Timeout (12s) waiting for privilege escalation prompt: "}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement