Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. "osProfile": {
  2. "computerName": "[concat('vm', copyIndex())]",
  3. "adminUsername": "[parameters('adminUsername')]",
  4. "adminPassword": "[parameters('adminPassword')]"
  5. },
  6.  
  7. #RSAAuthentication yes
  8. #PubkeyAuthentication yes
  9. AuthorizedKeysFile .ssh/authorized_keys
  10. # To disable tunneled clear text passwords, change to no here!
  11. #PasswordAuthentication yes
  12. #PermitEmptyPasswords no
  13. PasswordAuthentication yes
  14. UsePAM yes
  15.  
  16. [all]
  17. test01vm0 ansible_host=test01.cloudapp.azure.com ansible_port=50000
  18. test01vm1 ansible_host=test01.cloudapp.azure.com ansible_port=50001
  19.  
  20. # ssh access
  21. ansible_connection: ssh
  22.  
  23. [defaults]
  24. private_key_file=/home/pc/.ssh/id_rsa.pem
  25.  
  26. - name: create initial groups for the oracle user
  27. become: yes
  28. group: name={{ item }} state=present
  29. with_items:
  30. - "{{ oracle_group }}"
  31. - "{{ oracle_dba_group }}"
  32.  
  33. ansible-playbook oracle.yml -vvv --step --sudo
  34.  
  35. <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'"'"'"'"'"'"'"'"''"'"''
  36. fatal: [test01vm0]: FAILED! => {"failed": true, "msg": "ERROR! Timeout (12s) waiting for privilege escalation prompt: "}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement