Untitled - YAML 6.40 KB
                                
                                    TASK [kopiowanie] **********************************************************************************************************************************************************************************************
task path: /root/tsm/tsm_ubuntu.yaml:12
<192.168.0.101> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.101> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/6c49182560 192.168.0.101 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<192.168.0.101> (0, b'/root\n', b'')
<192.168.0.101> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.101> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/6c49182560 192.168.0.101 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1656865135.2017229-124564-198840515436714 `" && echo ansible-tmp-1656865135.2017229-124564-198840515436714="` echo /root/.ansible/tmp/ansible-tmp-1656865135.2017229-124564-198840515436714 `" ) && sleep 0'"'"''
<192.168.0.101> (0, b'ansible-tmp-1656865135.2017229-124564-198840515436714=/root/.ansible/tmp/ansible-tmp-1656865135.2017229-124564-198840515436714\n', b'')
Using module file /usr/lib/python3.6/site-packages/ansible/modules/commands/command.py
<192.168.0.101> PUT /root/.ansible/tmp/ansible-local-1245131tvin6sb/tmp38lpsguu TO /root/.ansible/tmp/ansible-tmp-1656865135.2017229-124564-198840515436714/AnsiballZ_command.py
<192.168.0.101> SSH: EXEC sshpass -d9 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/6c49182560 '[192.168.0.101]'
<192.168.0.101> (0, b'sftp> put /root/.ansible/tmp/ansible-local-1245131tvin6sb/tmp38lpsguu /root/.ansible/tmp/ansible-tmp-1656865135.2017229-124564-198840515436714/AnsiballZ_command.py\n', b'')
<192.168.0.101> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.101> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/6c49182560 192.168.0.101 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1656865135.2017229-124564-198840515436714/ /root/.ansible/tmp/ansible-tmp-1656865135.2017229-124564-198840515436714/AnsiballZ_command.py && sleep 0'"'"''
<192.168.0.101> (0, b'', b'')
<192.168.0.101> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.101> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/6c49182560 -tt 192.168.0.101 '/bin/sh -c '"'"'/usr/libexec/platform-python /root/.ansible/tmp/ansible-tmp-1656865135.2017229-124564-198840515436714/AnsiballZ_command.py && sleep 0'"'"''
<192.168.0.101> (1, b'\r\n{"msg": "non-zero return code", "cmd": ["sshpass", "-p", "root", "scp", "/usr/rear-target11.iso", "root@192.168.0.103:/usr/testy/rear-target11.iso"], "stdout": "", "stderr": "", "rc": 6, "start": "2022-07-02 07:21:44.820271", "end": "2022-07-02 07:21:44.852068", "delta": "0:00:00.031797", "changed": true, "failed": true, "invocation": {"module_args": {"_raw_params": "sshpass -p \'root\' scp /usr/rear-target11.iso root@192.168.0.103:/usr/testy/rear-target11.iso", "warn": true, "_uses_shell": false, "stdin_add_newline": true, "strip_empty_ends": true, "argv": null, "chdir": null, "executable": null, "creates": null, "removes": null, "stdin": null}}}\r\n', b'Shared connection to 192.168.0.101 closed.\r\n')
<192.168.0.101> Failed to connect to the host via ssh: Shared connection to 192.168.0.101 closed.
<192.168.0.101> ESTABLISH SSH CONNECTION FOR USER: root
<192.168.0.101> SSH: EXEC sshpass -d9 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/6c49182560 192.168.0.101 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1656865135.2017229-124564-198840515436714/ > /dev/null 2>&1 && sleep 0'"'"''
<192.168.0.101> (0, b'', b'')
fatal: [target11]: FAILED! => {
    "changed": true,
    "cmd": [
        "sshpass",
        "-p",
        "root",
        "scp",
        "/usr/rear-target11.iso",
        "root@192.168.0.103:/usr/testy/rear-target11.iso"
    ],
    "delta": "0:00:00.031797",
    "end": "2022-07-02 07:21:44.852068",
    "invocation": {
        "module_args": {
            "_raw_params": "sshpass -p 'root' scp /usr/rear-target11.iso root@192.168.0.103:/usr/testy/rear-target11.iso",
            "_uses_shell": false,
            "argv": null,
            "chdir": null,
            "creates": null,
            "executable": null,
            "removes": null,
            "stdin": null,
            "stdin_add_newline": true,
            "strip_empty_ends": true,
            "warn": true
        }
    },
    "msg": "non-zero return code",
    "rc": 6,
    "start": "2022-07-02 07:21:44.820271",
    "stderr": "",
    "stderr_lines": [],
    "stdout": "",
    "stdout_lines": []
}
                                
                            

Paste Hosted With By Wklejamy.pl