Guest User

Untitled

a guest
Jan 22nd, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. - hosts: broken
  2. strategy: debug
  3. become: yes
  4. remote_user: snehal
  5.  
  6. gather_facts: false
  7.  
  8. tasks:
  9. - name: check if file exists
  10. stat: path=/test/check_authkey
  11. register: authkey_exists
  12.  
  13. - name: copying CEPLIVE script
  14. copy:
  15. src: /home/snehal/Final_build_files/check_authkey
  16. dest: /home/snehal/
  17. when: not authkey_exists.stat.exists
  18.  
  19. - name: run script
  20. command: /home/snehal/check_authkey.sh
  21. when: not authkey_exists.stat.exists
  22.  
  23. PLAY [broken] ******************************************************************************************************************************************************
  24.  
  25. TASK [check if file exists] ****************************************************************************************************************************************
  26. ok: [MOD009293]
  27. ok: [MOD007479]
  28.  
  29. TASK [copying CEPLIVE script] **************************************************************************************************************************************
  30. skipping: [MOD007479]
  31. ok: [MOD009293]
  32.  
  33. TASK [run CEPLIVE script] ******************************************************************************************************************************************
  34. skipping: [MOD007479]
  35. fatal: [MOD009293]: FAILED! => {"changed": true, "cmd": ["/home/snehal/check_authkey.sh"], "delta": "0:00:00.033337", "end": "2019-01-22 17:33:05.279549", "failed": true, "rc": 1, "start": "2019-01-22 17:33:05.246212", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
  36. to retry, use: --limit @/home/snehal/ansible/ceplive.retry
  37.  
  38. PLAY RECAP *********************************************************************************************************************************************************
  39. MOD007479 : ok=1 changed=0 unreachable=0 failed=0
  40. MOD009293 : ok=2 changed=0 unreachable=0 failed=1
Add Comment
Please, Sign In to add comment