Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - hosts: broken
- strategy: debug
- become: yes
- remote_user: snehal
- gather_facts: false
- tasks:
- - name: check if file exists
- stat: path=/test/check_authkey
- register: authkey_exists
- - name: copying CEPLIVE script
- copy:
- src: /home/snehal/Final_build_files/check_authkey
- dest: /home/snehal/
- when: not authkey_exists.stat.exists
- - name: run script
- command: /home/snehal/check_authkey.sh
- when: not authkey_exists.stat.exists
- PLAY [broken] ******************************************************************************************************************************************************
- TASK [check if file exists] ****************************************************************************************************************************************
- ok: [MOD009293]
- ok: [MOD007479]
- TASK [copying CEPLIVE script] **************************************************************************************************************************************
- skipping: [MOD007479]
- ok: [MOD009293]
- TASK [run CEPLIVE script] ******************************************************************************************************************************************
- skipping: [MOD007479]
- 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": []}
- to retry, use: --limit @/home/snehal/ansible/ceplive.retry
- PLAY RECAP *********************************************************************************************************************************************************
- MOD007479 : ok=1 changed=0 unreachable=0 failed=0
- MOD009293 : ok=2 changed=0 unreachable=0 failed=1
Add Comment
Please, Sign In to add comment