IBM / ansible-for-i

the tool is to provide several customized modules for Ansible to manage IBM i systems.
GNU General Public License v3.0
55 stars 51 forks source link

CICD | "msg": "remote module (os_server) does not support check mode" #117

Closed mad5bo closed 2 years ago

mad5bo commented 2 years ago

Hi, trying to run the CICD_cli use case, there exist an message "remote module (os_server) does not support check mode" so this does not permit to deploy the IBM i, the output is as follows, in this case the use of ansible controller on IBM i Do you have any feedback about it please? @LiJunBJZhu @changlexc

 ansible-playbook --check main.yml -vvvv
ansible-playbook 2.9.10
  config file = /home/QSECOFR/as45g01/cicd-cli/ansible.cfg
  configured module search path = ['/HOME/QSECOFR/.ansible/collections/ansible_collections/ibm/power_ibmi/plugins/modules']
  ansible python module location = /QOpenSys/pkgs/lib/python3.6/site-packages/ansible
  executable location = /QOpenSys/pkgs/bin/ansible-playbook
  python version = 3.6.12 (default, Nov 10 2020, 13:50:57) [GCC 6.3.0]
Using /home/QSECOFR/as45g01/cicd-cli/ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /home/QSECOFR/as45g01/cicd-cli/hosts.ini as it did not pass its verify_file() method
auto declined parsing /home/QSECOFR/as45g01/cicd-cli/hosts.ini as it did not pass its verify_file() method
yaml declined parsing /home/QSECOFR/as45g01/cicd-cli/hosts.ini as it did not pass its verify_file() method
Parsed /home/QSECOFR/as45g01/cicd-cli/hosts.ini inventory source with ini plugin
statically imported: /home/QSECOFR/as45g01/cicd-cli/git_clone.yml
statically imported: /home/QSECOFR/as45g01/cicd-cli/provision_vm.yml
statically imported: /home/QSECOFR/as45g01/cicd-cli/add_build_system.yml
statically imported: /home/QSECOFR/as45g01/cicd-cli/put_code.yml
statically imported: /home/QSECOFR/as45g01/cicd-cli/build.yml
statically imported: /home/QSECOFR/as45g01/cicd-cli/post_build_actions.yml
statically imported: /home/QSECOFR/as45g01/cicd-cli/cleanup.yml
Loading callback plugin default of type stdout, v2.0 from /QOpenSys/pkgs/lib/python3.6/site-packages/ansible/plugins/callback/default.py

PLAYBOOK: main.yml *****************************************************************************************************************************************
Positional arguments: main.yml
verbosity: 4
connection: smart
timeout: 10
become_method: sudo
tags: ('all',)
check: True
inventory: ('/home/QSECOFR/as45g01/cicd-cli/hosts.ini',)
forks: 5
1 plays in main.yml

PLAY [localhost] *******************************************************************************************************************************************

TASK [Gathering Facts] *************************************************************************************************************************************
task path: /home/QSECOFR/as45g01/cicd-cli/main.yml:1
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: qsecofr
<127.0.0.1> EXEC /bin/sh -c 'echo ~qsecofr && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /HOME/QSECOFR/.ansible/tmp `"&& mkdir /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310978.928801-31669-131859221316346 && echo ansible-tmp-1633310978.928801-31669-131859221316346="` echo /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310978.928801-31669-131859221316346 `" ) && sleep 0'
Using module file /QOpenSys/pkgs/lib/python3.6/site-packages/ansible/modules/system/setup.py
<127.0.0.1> PUT /HOME/QSECOFR/.ansible/tmp/ansible-local-31655t82v70tm/tmpjeu6u7cd TO /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310978.928801-31669-131859221316346/AnsiballZ_setup.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310978.928801-31669-131859221316346/ /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310978.928801-31669-131859221316346/AnsiballZ_setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/QOpenSys/pkgs/bin/python3.6 /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310978.928801-31669-131859221316346/AnsiballZ_setup.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310978.928801-31669-131859221316346/ > /dev/null 2>&1 && sleep 0'
ok: [localhost]
META: ran handlers

TASK [set_fact] ********************************************************************************************************************************************
task path: /home/QSECOFR/as45g01/cicd-cli/main.yml:14
ok: [localhost] => {
    "ansible_facts": {
        "build_lib": "BUILD_9060"
    },
    "changed": false
}

TASK [set_fact] *****************************************
task path: /home/QSECOFR/as45g01/cicd-cli/main.yml:17
ok: [localhost] => {
    "ansible_facts": {
        "build_path": "/tmp/BUILD_9060",
        "local_workspace": "~/workspace/BUILD_9060"
    },
    "changed": false
}

TASK [remove if ~/workspace/BUILD_9060 exists] *************************************************************************************************************
task path: /home/QSECOFR/as45g01/cicd-cli/git_clone.yml:1
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: qsecofr
<127.0.0.1> EXEC /bin/sh -c 'echo ~qsecofr && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /HOME/QSECOFR/.ansible/tmp `"&& mkdir /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310983.1374872-31688-81115591790611 && echo ansible-tmp-1633310983.1374872-31688-81115591790611="` echo /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310983.1374872-31688-81115591790611 `" ) && sleep 0'
Using module file /QOpenSys/pkgs/lib/python3.6/site-packages/ansible/modules/files/file.py
<127.0.0.1> PUT /HOME/QSECOFR/.ansible/tmp/ansible-local-31655t82v70tm/tmp88vn1tro TO /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310983.1374872-31688-81115591790611/AnsiballZ_file.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310983.1374872-31688-81115591790611/ /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310983.1374872-31688-81115591790611/AnsiballZ_file.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/QOpenSys/pkgs/bin/python3.6 /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310983.1374872-31688-81115591790611/AnsiballZ_file.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310983.1374872-31688-81115591790611/ > /dev/null 2>&1 && sleep 0'
ok: [localhost] => {
    "changed": false,
    "invocation": {
        "module_args": {
            "_diff_peek": null,
            "_original_basename": null,
            "access_time": null,
            "access_time_format": "%Y%m%d%H%M.%S",
            "attributes": null,
            "backup": null,
            "content": null,
            "delimiter": null,
            "directory_mode": null,
            "follow": true,
            "force": false,
            "group": null,
            "mode": null,
            "modification_time": null,
            "modification_time_format": "%Y%m%d%H%M.%S",
            "owner": null,
            "path": "/HOME/QSECOFR/workspace/BUILD_9060",
            "recurse": false,
            "regexp": null,
            "remote_src": null,
            "selevel": null,
            "serole": null,
            "setype": null,
            "seuser": null,
            "src": null,
 "state": "absent",
            "unsafe_writes": null
        }
    },
    "path": "/HOME/QSECOFR/workspace/BUILD_9060",
    "state": "absent"
}

TASK [create ~/workspace/BUILD_9060] ***********************************************************************************************************************
task path: /home/QSECOFR/as45g01/cicd-cli/git_clone.yml:6
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: qsecofr
<127.0.0.1> EXEC /bin/sh -c 'echo ~qsecofr && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /HOME/QSECOFR/.ansible/tmp `"&& mkdir /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310985.233728-31700-263277920848852 && echo ansible-tmp-1633310985.233728-31700-263277920848852="` echo /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310985.233728-31700-263277920848852 `" ) && sleep 0'
Using module file /QOpenSys/pkgs/lib/python3.6/site-packages/ansible/modules/files/file.py
<127.0.0.1> PUT /HOME/QSECOFR/.ansible/tmp/ansible-local-31655t82v70tm/tmp9nypdgqu TO /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310985.233728-31700-263277920848852/AnsiballZ_file.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310985.233728-31700-263277920848852/ /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310985.233728-31700-263277920848852/AnsiballZ_file.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/QOpenSys/pkgs/bin/python3.6 /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310985.233728-31700-263277920848852/AnsiballZ_file.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310985.233728-31700-263277920848852/ > /dev/null 2>&1 && sleep 0'
changed: [localhost] => {
    "changed": true,
    "diff": {
        "after": {
            "path": "/HOME/QSECOFR/workspace/BUILD_9060",
            "state": "directory"
        },
        "before": {
            "path": "/HOME/QSECOFR/workspace/BUILD_9060",
            "state": "absent"
        }
    },
    "invocation": {
        "module_args": {
            "_diff_peek": null,
            "_original_basename": null,
            "access_time": null,
            "access_time_format": "%Y%m%d%H%M.%S",
            "attributes": null,
            "backup": null,
            "content": null,
            "delimiter": null,
            "directory_mode": null,
            "follow": true,
            "force": false,
            "group": null,
            "mode": "0755",
            "modification_time": null,
            "modification_time_format": "%Y%m%d%H%M.%S",
            "owner": null,
            "path": "/HOME/QSECOFR/workspace/BUILD_9060",
            "recurse": false,
            "regexp": null,
            "remote_src": null,
            "selevel": null,
            "serole": null,
            "setype": null,
            "seuser": null,
            "src": null,
            "state": "directory",
            "unsafe_writes": null
        }
    }
}

TASK [git clone from source repository] ********************************************************************************************************************
task path: /home/QSECOFR/as45g01/cicd-cli/git_clone.yml:12
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: qsecofr
<127.0.0.1> EXEC /bin/sh -c 'echo ~qsecofr && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /HOME/QSECOFR/.ansible/tmp `"&& mkdir /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310986.843189-31712-89121623820743 && echo ansible-tmp-1633310986.843189-31712-89121623820743="` echo /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310986.843189-31712-89121623820743 `" ) && sleep 0'
Using module file /QOpenSys/pkgs/lib/python3.6/site-packages/ansible/modules/source_control/git.py
<127.0.0.1> PUT /HOME/QSECOFR/.ansible/tmp/ansible-local-31655t82v70tm/tmpu6cz349c TO /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310986.843189-31712-89121623820743/AnsiballZ_git.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310986.843189-31712-89121623820743/ /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310986.843189-31712-89121623820743/AnsiballZ_git.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/QOpenSys/pkgs/bin/python3.6 /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310986.843189-31712-89121623820743/AnsiballZ_git.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310986.843189-31712-89121623820743/ > /dev/null 2>&1 && sleep 0'
changed: [localhost] => {
    "after": "master",
    "before": null,
    "changed": true,
    "invocation": {
        "module_args": {
            "accept_hostkey": false,
            "archive": null,
            "bare": false,
            "clone": true,
            "depth": null,
            "dest": "/HOME/QSECOFR/workspace/BUILD_9060",
            "executable": null,
            "force": false,
            "gpg_whitelist": [],
            "key_file": null,
            "recursive": true,
            "reference": null,
            "refspec": null,
            "remote": "origin",
            "repo": "https://github.com/mad5bo/as45g_cicd-.git",
            "separate_git_dir": null,
            "ssh_opts": null,
            "track_submodules": false,
            "umask": null,
            "update": true,
            "verify_commit": false,
            "version": "master"
        }
    }
}

TASK [include provision related vars if provision is true] *************************************************************************************************
task path: /home/QSECOFR/as45g01/cicd-cli/main.yml:26
ok: [localhost] => {
    "ansible_facts": {
        "deploy_timeout": 300,
        "deploy_userdata": "{%- raw -%}#!/bin/sh\nmkdir /home/BUILDER\nsystem \"CRTUSRPRF USRPRF(BUILDER) PASSWORD(PASSWORD) USRCLS(*SECOFR) ASTLVL(*SYSVAL) TEXT('Ansible CICD build') HOMEDIR('/home/BUILDER')\"\nsystem \"chgtcpsvr svrspcval(*sshd) autostart(*yes)\"\nsystem \"strtcpsvr *sshd\"\n{% endraw %}\n",
        "flavor_name_or_id": "tiny",
        "image_name_or_id": "AS45G01_9860610",
        "nic_list": [
            {
                "net-name": "Network1"
            }
        ],
        "powervc_admin": "root",
        "powervc_admin_password": "abc123",
        "powervc_host": "10.8.29.101",
        "project": "ibm-default",
        "project_domain": "Default",
        "user_domain": "Default",
        "verify_cert": false,
        "vm_name": "VM-{{ build_lib }}"
    },
    "ansible_included_var_files": [
        "/home/QSECOFR/as45g01/cicd-cli/provision_vars.yml"
    ],
    "changed": false
}

TASK [Add PowerVC host 10.8.29.101 to Ansible in-memory inventory] *****************************************************************************************
task path: /home/QSECOFR/as45g01/cicd-cli/provision_vm.yml:2
creating host via 'add_host': hostname=powervc
changed: [localhost] => {
    "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result",
    "changed": true
}

TASK [Deploy a new VM] *************************************************************************************************************************************
task path: /home/QSECOFR/as45g01/cicd-cli/provision_vm.yml:13
<10.8.29.101> ESTABLISH SSH CONNECTION FOR USER: root
<10.8.29.101> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o ControlPath=/HOME/QSECOFR/.ansible/cp/e4d687fc01 10.8.29.101 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.8.29.101> (0, b'/root\n', b'OpenSSH_8.1p1, OpenSSL 1.1.1g  21 Apr 2020\r\ndebug1: Reading configuration data /QOpenSys/etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.8.29.101 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket "/HOME/QSECOFR/.ansible/cp/e4d687fc01" does not exist\r\ndebug2: ssh_connect_direct\r\ndebug1: Connecting to 10.8.29.101 [10.8.29.101] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 9989 ms remain after connect\r\ndebug1: identity file /HOME/QSECOFR/.ssh/id_rsa type 0\r\ndebug1: identity file /HOME/QSECOFR/.ssh/id_rsa-cert type -1\r\ndebug1: identity file /HOME/QSECOFR/.ssh/id_dsa type -1\r\ndebug1: identity file /HOME/QSECOFR/.ssh/id_dsa-cert type -1\r\ndebug1: identity file /HOME/QSECOFR/.ssh/id_ecdsa type -1\r\ndebug1: identity file /HOME/QSECOFR/.ssh/id_ecdsa-cert type -1\r\ndebug1: identity file /HOME/QSECOFR/.ssh/id_ed25519 type -1\r\ndebug1: identity file /HOME/QSECOFR/.ssh/id_ed25519-cert type -1\r\ndebug1: identity file /HOME/QSECOFR/.ssh/id_xmss type -1\r\ndebug1: identity file /HOME/QSECOFR/.ssh/id_xmss-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_8.1\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_8.0\r\ndebug1: match: OpenSSH_8.0 pat OpenSSH* compat 0x04000000\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: Authenticating to 10.8.29.101:22 as \'root\'\r\ndebug3: hostkeys_foreach: reading file "/HOME/QSECOFR/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /HOME/QSECOFR/.ssh/known_hosts:2\r\ndebug3: load_hostkeys: loaded 1 keys from 10.8.29.101\r\ndebug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c\r\ndebug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: zlib@openssh.com,zlib,none\r\ndebug2: compression stoc: zlib@openssh.com,zlib,none\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1\r\ndebug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: ciphers ctos: aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes256-cbc,aes128-gcm@openssh.com,aes128-ctr,aes128-cbc\r\ndebug2: ciphers stoc: aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes256-cbc,aes128-gcm@openssh.com,aes128-ctr,aes128-cbc\r\ndebug2: MACs ctos: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512\r\ndebug2: MACs stoc: hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512\r\ndebug2: compression ctos: none,zlib@openssh.com\r\ndebug2: compression stoc: none,zlib@openssh.com\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: zlib@openssh.com\r\ndebug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: zlib@openssh.com\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:/RJvTVOfFSTUWWLLbq1oJP0iAqALYg8+56NtFwu3fUo\r\ndebug3: hostkeys_foreach: reading file "/HOME/QSECOFR/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /HOME/QSECOFR/.ssh/known_hosts:2\r\ndebug3: load_hostkeys: loaded 1 keys from 10.8.29.101\r\ndebug1: Host \'10.8.29.101\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /HOME/QSECOFR/.ssh/known_hosts:2\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey out after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey in after 134217728 blocks\r\ndebug1: Will attempt key: /HOME/QSECOFR/.ssh/id_rsa RSA SHA256:V5VzRDMfVjLMFa7Wh8+V8q6e5IdQbFPys5HYc/tegIA\r\ndebug1: Will attempt key: /HOME/QSECOFR/.ssh/id_dsa \r\ndebug1: Will attempt key: /HOME/QSECOFR/.ssh/id_ecdsa \r\ndebug1: Will attempt key: /HOME/QSECOFR/.ssh/id_ed25519 \r\ndebug1: Will attempt key: /HOME/QSECOFR/.ssh/id_xmss \r\ndebug2: pubkey_prepare: done\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 53\r\ndebug3: input_userauth_banner\r\n\n\nWelcome to the IBM Remote Lab Platform\n\n\nCLPTST4G ERC 1.0 / 1179186\nCLPTST4G Integration Testing\n\nSep 2, 2021 8:00 AM  Europe/Paris\nSep 2, 2021 6:00 PM  Europe/Paris\n\nRed Hat Enterprise Linux 8.3 (Ootpa)\nv529-pvc-t1.ibm.edu / 10.8.29.101\n\nThis system is authorized for use in the completion of the material\noutlined in the lab exercise guide only.\n\n\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-interactive\r\ndebug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-interactive\r\ndebug3: preferred publickey,keyboard-interactive,password\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: keyboard-interactive,password\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering public key: /HOME/QSECOFR/.ssh/id_rsa RSA SHA256:V5VzRDMfVjLMFa7Wh8+V8q6e5IdQbFPys5HYc/tegIA\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: /HOME/QSECOFR/.ssh/id_rsa RSA SHA256:V5VzRDMfVjLMFa7Wh8+V8q6e5IdQbFPys5HYc/tegIA\r\ndebug3: sign_and_send_pubkey: RSA SHA256:V5VzRDMfVjLMFa7Wh8+V8q6e5IdQbFPys5HYc/tegIA\r\ndebug3: sign_and_send_pubkey: signing using rsa-sha2-512\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Enabling compression at level 6.\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to 10.8.29.101 ([10.8.29.101]:22).\r\ndebug1: setting up multiplex master socket\r\ndebug3: muxserver_listen: temporary control path /HOME/QSECOFR/.ansible/cp/e4d687fc01.TmyD0fol7WFUVaf9\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug3: fd 4 is O_NONBLOCK\r\ndebug3: fd 4 is O_NONBLOCK\r\ndebug1: channel 0: new [/HOME/QSECOFR/.ansible/cp/e4d687fc01]\r\ndebug3: muxserver_listen: mux listener channel 0 fd 4\r\ndebug2: fd 3 setting TCP_NODELAY\r\ndebug3: ssh_packet_set_tos: set IP_TOS 0x20\r\ndebug1: control_persist_detach: backgrounding master process\r\ndebug2: control_persist_detach: background process is 31735\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug1: forking to background\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: id\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\ndebug1: multiplexing control connection\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug3: fd 5 is O_NONBLOCK\r\ndebug1: channel 1: new [mux-control]\r\ndebug3: channel_post_mux_listener: new mux channel 1 fd 5\r\ndebug3: mux_master_read_cb: channel 1: hello sent\r\ndebug3: receive packet: type 80\r\ndebug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0\r\ndebug3: receive packet: type 4\r\ndebug1: Remote: /root/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding\r\ndebug3: receive packet: type 4\r\ndebug1: Remote: /root/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding\r\ndebug2: set_control_persist_exit_time: cancel scheduled exit\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x00000001 len 4\r\ndebug2: mux_master_process_hello: channel 1 slave version 4\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000004 len 4\r\ndebug2: mux_master_process_alive_check: channel 1: alive check\r\ndebug3: mux_client_request_alive: done pid = 31737\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000002 len 75\r\ndebug3: mux_client_request_session: session request sent\r\ndebug2: mux_master_process_new_session: channel 1: request tty 0, X 0, agent 0, subsys 0, term "xterm", cmd "/bin/sh -c \'echo ~root && sleep 0\'", env 0\r\ndebug3: mux_master_process_new_session: got fds stdin 6, stdout 7, stderr 8\r\ndebug2: fd 7 setting O_NONBLOCK\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug1: channel 2: new [client-session]\r\ndebug2: mux_master_process_new_session: channel_new: 2 linked to control channel 1\r\ndebug2: channel 2: send open\r\ndebug3: send packet: type 90\r\ndebug3: receive packet: type 91\r\ndebug2: channel_input_open_confirmation: channel 2: callback start\r\ndebug2: client_session2_setup: id 2\r\ndebug1: Sending command: /bin/sh -c \'echo ~root && sleep 0\'\r\ndebug2: channel 2: request exec confirm 1\r\ndebug3: send packet: type 98\r\ndebug3: mux_session_confirm: sending success reply\r\ndebug2: channel_input_open_confirmation: channel 2: callback done\r\ndebug2: channel 2: open confirm rwindow 0 rmax 32768\r\ndebug2: channel 2: rcvd adjust 2097152\r\ndebug3: receive packet: type 99\r\ndebug2: channel_input_status_confirm: type 99 id 2\r\ndebug2: exec request accepted on channel 2\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 2 rtype exit-status reply 0\r\ndebug3: mux_exit_message: channel 2: exit message, exitval 0\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 2 rtype eow@openssh.com reply 0\r\ndebug2: channel 2: rcvd eow\r\ndebug2: channel 2: chan_shutdown_read (i0 o0 sock -1 wfd 6 efd 8 [write])\r\ndebug2: channel 2: input open -> closed\r\ndebug3: receive packet: type 96\r\ndebug2: channel 2: rcvd eof\r\ndebug2: channel 2: output open -> drain\r\ndebug2: channel 2: obuf empty\r\ndebug2: channel 2: chan_shutdown_write (i3 o1 sock -1 wfd 7 efd 8 [write])\r\ndebug2: channel 2: output drain -> closed\r\ndebug3: receive packet: type 97\r\ndebug2: channel 2: rcvd close\r\ndebug3: channel 2: will not send data after close\r\ndebug2: channel 2: send close\r\ndebug3: send packet: type 97\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: gc: notify user\r\ndebug3: mux_master_session_cleanup_cb: entering for channel 2\r\ndebug2: channel 1: rcvd close\r\ndebug2: channel 1: output open -> drain\r\ndebug2: channel 1: chan_shutdown_read (i0 o1 sock 5 wfd 5 efd -1 [closed])\r\ndebug2: channel 1: input open -> closed\r\ndebug2: channel 2: gc: user detached\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: garbage collecting\r\ndebug1: channel 2: free: client-session, nchannels 3\r\ndebug3: channel 2: status: The following connections are open:\r\n  #1 mux-control (t16 nr0 i3/0 o1/16 e[closed]/0 fd 5/5/-1 sock 5 cc -1)\r\n  #2 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/8 sock -1 cc -1)\r\n\r\ndebug2: channel 1: obuf empty\r\ndebug2: channel 1: chan_shutdown_write (i3 o1 sock 5 wfd 5 efd -1 [closed])\r\ndebug2: channel 1: output drain -> closed\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: gc: notify user\r\ndebug3: mux_master_control_cleanup_cb: entering for channel 1\r\ndebug2: channel 1: gc: user detached\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: garbage collecting\r\ndebug1: channel 1: free: mux-control, nchannels 2\r\ndebug3: channel 1: status: The following connections are open:\r\n  #1 mux-control (t16 nr0 i3/0 o3/0 e[closed]/0 fd 5/5/-1 sock 5 cc -1)\r\n\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<10.8.29.101> ESTABLISH SSH CONNECTION FOR USER: root
<10.8.29.101> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o ControlPath=/HOME/QSECOFR/.ansible/cp/e4d687fc01 10.8.29.101 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir /root/.ansible/tmp/ansible-tmp-1633310991.6986828-31731-8926183070181 && echo ansible-tmp-1633310991.6986828-31731-8926183070181="` echo /root/.ansible/tmp/ansible-tmp-1633310991.6986828-31731-8926183070181 `" ) && sleep 0'"'"''
<10.8.29.101> (0, b'ansible-tmp-1633310991.6986828-31731-8926183070181=/root/.ansible/tmp/ansible-tmp-1633310991.6986828-31731-8926183070181\n', b'OpenSSH_8.1p1, OpenSSL 1.1.1g  21 Apr 2020\r\ndebug1: Reading configuration data /QOpenSys/etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.8.29.101 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: enterring\r\ndebug3: mux_client_request_alive: done pid = 31737\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /QOpenSys/pkgs/lib/python3.6/site-packages/ansible/modules/cloud/openstack/os_server.py
<10.8.29.101> PUT /HOME/QSECOFR/.ansible/tmp/ansible-local-31655t82v70tm/tmpkrml3i5w TO /root/.ansible/tmp/ansible-tmp-1633310991.6986828-31731-8926183070181/AnsiballZ_os_server.py
<10.8.29.101> SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/HOME/QSECOFR/.ansible/cp/e4d687fc01 '[10.8.29.101]'
<10.8.29.101> (0, b'sftp> put /HOME/QSECOFR/.ansible/tmp/ansible-local-31655t82v70tm/tmpkrml3i5w /root/.ansible/tmp/ansible-tmp-1633310991.6986828-31731-8926183070181/AnsiballZ_os_server.py\n', b'OpenSSH_8.1p1, OpenSSL 1.1.1g  21 Apr 2020\r\ndebug1: Reading configuration data /QOpenSys/etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.8.29.101 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 31737\r\ndebug3: mux_client_request_session: session request sent\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug2: Server supports extension "fsync@openssh.com" revision 1\r\ndebug2: Server supports extension "lsetstat@openssh.com" revision 1\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /root size 0\r\ndebug3: Looking up /HOME/QSECOFR/.ansible/tmp/ansible-local-31655t82v70tm/tmpkrml3i5w\r\ndebug3: Sent message fd 5 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/root/.ansible/tmp/ansible-tmp-1633310991.6986828-31731-8926183070181/AnsiballZ_os_server.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:26469\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 26469 bytes at 98304\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<10.8.29.101> ESTABLISH SSH CONNECTION FOR USER: root
<10.8.29.101> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o ControlPath=/HOME/QSECOFR/.ansible/cp/e4d687fc01 10.8.29.101 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1633310991.6986828-31731-8926183070181/ /root/.ansible/tmp/ansible-tmp-1633310991.6986828-31731-8926183070181/AnsiballZ_os_server.py && sleep 0'"'"''
<10.8.29.101> (0, b'', b'OpenSSH_8.1p1, OpenSSL 1.1.1g  21 Apr 2020\r\ndebug1: Reading configuration data /QOpenSys/etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.8.29.101 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 31737\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<10.8.29.101> ESTABLISH SSH CONNECTION FOR USER: root
<10.8.29.101> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o ControlPath=/HOME/QSECOFR/.ansible/cp/e4d687fc01 -tt 10.8.29.101 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1633310991.6986828-31731-8926183070181/AnsiballZ_os_server.py && sleep 0'"'"''
<10.8.29.101> (0, b'\r\n{"skipped": true, "msg": "remote module (os_server) does not support check mode", "invocation": {"module_args": {"auth": {"auth_url": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "project_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "project_domain_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "user_domain_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"}, "name": "VM-BUILD_9060", "image": "AS45G01_9860610", "flavor": "tiny", "verify": false, "nics": [{"net-name": "Network1"}], "timeout": 300, "userdata": "#!/bin/sh\\nmkdir /home/BUILDER\\nsystem \\"CRTUSRPRF USRPRF(BUILDER) PASSWORD(PASSWORD) USRCLS(*SECOFR) ASTLVL(*SYSVAL) TEXT(\'Ansible CICD build\') HOMEDIR(\'/home/BUILDER\')\\"\\nsystem \\"chgtcpsvr svrspcval(*sshd) autostart(*yes)\\"\\nsystem \\"strtcpsvr *sshd\\"\\n", "validate_certs": false}}}\r\n', b'OpenSSH_8.1p1, OpenSSL 1.1.1g  21 Apr 2020\r\ndebug1: Reading configuration data /QOpenSys/etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.8.29.101 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 31737\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 10.8.29.101 closed.\r\n')
<10.8.29.101> ESTABLISH SSH CONNECTION FOR USER: root
<10.8.29.101> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o ControlPath=/HOME/QSECOFR/.ansible/cp/e4d687fc01 10.8.29.101 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1633310991.6986828-31731-8926183070181/ > /dev/null 2>&1 && sleep 0'"'"''
<10.8.29.101> (0, b'', b'OpenSSH_8.1p1, OpenSSL 1.1.1g  21 Apr 2020\r\ndebug1: Reading configuration data /QOpenSys/etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.8.29.101 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 31737\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
skipping: [localhost] => {
    "changed": false,
    "invocation": {
        "module_args": {
            "auth": {
                "auth_url": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "project_domain_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "project_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "user_domain_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
            },
            "flavor": "tiny",
            "image": "AS45G01_9860610",
            "name": "VM-BUILD_9060",
            "nics": [
                {
                    "net-name": "Network1"
                }
            ],
            "timeout": 300,
            "userdata": "#!/bin/sh\nmkdir /home/BUILDER\nsystem \"CRTUSRPRF USRPRF(BUILDER) PASSWORD(PASSWORD) USRCLS(*SECOFR) ASTLVL(*SYSVAL) TEXT('Ansible CICD build') HOMEDIR('/home/BUILDER')\"\nsystem \"chgtcpsvr svrspcval(*sshd) autostart(*yes)\"\nsystem \"strtcpsvr *sshd\"\n",
            "validate_certs": false,
            "verify": false
        }
    },
    "msg": "remote module (os_server) does not support check mode"
}

TASK [set_fact for fixed build environment] ****************************************************************************************************************
task path: /home/QSECOFR/as45g01/cicd-cli/add_build_system.yml:2
skipping: [localhost] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [Add build server to Ansible in-memory inventory] *****************************************************************************************************
task path: /home/QSECOFR/as45g01/cicd-cli/add_build_system.yml:8
skipping: [localhost] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [set_fact for non-fixed build environment] ************************************************************************************************************
task path: /home/QSECOFR/as45g01/cicd-cli/add_build_system.yml:20
fatal: [localhost]: FAILED! => {
    "msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'server'\n\nThe error appears to be in '/home/QSECOFR/as45g01/cicd-cli/add_build_system.yml': line 20, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n    - name: set_fact for non-fixed build environment\n      ^ here\n"
}

TASK [remove "~/workspace/BUILD_9060"] *********************************************************************************************************************
task path: /home/QSECOFR/as45g01/cicd-cli/cleanup.yml:1
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: qsecofr
<127.0.0.1> EXEC /bin/sh -c 'echo ~qsecofr && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /HOME/QSECOFR/.ansible/tmp `"&& mkdir /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310996.3349602-31752-202552063951079 && echo ansible-tmp-1633310996.3349602-31752-202552063951079="` echo /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310996.3349602-31752-202552063951079 `" ) && sleep 0'
Using module file /QOpenSys/pkgs/lib/python3.6/site-packages/ansible/modules/files/file.py
<127.0.0.1> PUT /HOME/QSECOFR/.ansible/tmp/ansible-local-31655t82v70tm/tmp5es26jw0 TO /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310996.3349602-31752-202552063951079/AnsiballZ_file.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310996.3349602-31752-202552063951079/ /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310996.3349602-31752-202552063951079/AnsiballZ_file.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/QOpenSys/pkgs/bin/python3.6 /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310996.3349602-31752-202552063951079/AnsiballZ_file.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /HOME/QSECOFR/.ansible/tmp/ansible-tmp-1633310996.3349602-31752-202552063951079/ > /dev/null 2>&1 && sleep 0'
ok: [localhost] => {
    "changed": false,
    "invocation": {
        "module_args": {
            "_diff_peek": null,
            "_original_basename": null,
            "access_time": null,
            "access_time_format": "%Y%m%d%H%M.%S",
            "attributes": null,
            "backup": null,
            "content": null,
            "delimiter": null,
            "directory_mode": null,
            "follow": true,
            "force": false,
            "group": null,
            "mode": null,
            "modification_time": null,
            "modification_time_format": "%Y%m%d%H%M.%S",
            "owner": null,
            "path": "/HOME/QSECOFR/workspace/BUILD_9060",
            "recurse": false,
            "regexp": null,
            "remote_src": null,
            "selevel": null,
            "serole": null,
            "setype": null,
            "seuser": null,
            "src": null,
            "state": "absent",
            "unsafe_writes": null
        }
    },
    "path": "/HOME/QSECOFR/workspace/BUILD_9060",
    "state": "absent"
}

TASK [remove build path] ***********************************************************************************************************************************
task path: /home/QSECOFR/as45g01/cicd-cli/cleanup.yml:7
skipping: [localhost] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [remove build lib] ************************************************************************************************************************************
task path: /home/QSECOFR/as45g01/cicd-cli/cleanup.yml:15
skipping: [localhost] => {
    "changed": false,
    "skip_reason": "Conditional result was False"
}

TASK [Destroy VM when provision] ***************************************************************************************************************************
task path: /home/QSECOFR/as45g01/cicd-cli/cleanup.yml:22
<10.8.29.101> ESTABLISH SSH CONNECTION FOR USER: root
<10.8.29.101> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o ControlPath=/HOME/QSECOFR/.ansible/cp/e4d687fc01 10.8.29.101 '/bin/sh -c '"'"'echo ~root && sleep 0'"'"''
<10.8.29.101> (0, b'/root\n', b'OpenSSH_8.1p1, OpenSSL 1.1.1g  21 Apr 2020\r\ndebug1: Reading configuration data /QOpenSys/etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.8.29.101 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 31737\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<10.8.29.101> ESTABLISH SSH CONNECTION FOR USER: root
<10.8.29.101> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o ControlPath=/HOME/QSECOFR/.ansible/cp/e4d687fc01 10.8.29.101 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir /root/.ansible/tmp/ansible-tmp-1633310998.6758552-31766-142775221451680 && echo ansible-tmp-1633310998.6758552-31766-142775221451680="` echo /root/.ansible/tmp/ansible-tmp-1633310998.6758552-31766-142775221451680 `" ) && sleep 0'"'"''
<10.8.29.101> (0, b'ansible-tmp-1633310998.6758552-31766-142775221451680=/root/.ansible/tmp/ansible-tmp-1633310998.6758552-31766-142775221451680\n', b'OpenSSH_8.1p1, OpenSSL 1.1.1g  21 Apr 2020\r\ndebug1: Reading configuration data /QOpenSys/etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.8.29.101 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 31737\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
Using module file /QOpenSys/pkgs/lib/python3.6/site-packages/ansible/modules/cloud/openstack/os_server.py
<10.8.29.101> PUT /HOME/QSECOFR/.ansible/tmp/ansible-local-31655t82v70tm/tmpqmbj_foz TO /root/.ansible/tmp/ansible-tmp-1633310998.6758552-31766-142775221451680/AnsiballZ_os_server.py
<10.8.29.101> SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/HOME/QSECOFR/.ansible/cp/e4d687fc01 '[10.8.29.101]'
<10.8.29.101> (0, b'sftp> put /HOME/QSECOFR/.ansible/tmp/ansible-local-31655t82v70tm/tmpqmbj_foz /root/.ansible/tmp/ansible-tmp-1633310998.6758552-31766-142775221451680/AnsiballZ_os_server.py\n', b'OpenSSH_8.1p1, OpenSSL 1.1.1g  21 Apr 2020\r\ndebug1: Reading configuration data /QOpenSys/etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.8.29.101 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 31737\r\ndebug3: mux_client_request_session: session request sent\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug2: Server supports extension "fsync@openssh.com" revision 1\r\ndebug2: Server supports extension "lsetstat@openssh.com" revision 1\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -> /root size 0\r\ndebug3: Looking up /HOME/QSECOFR/.ansible/tmp/ansible-local-31655t82v70tm/tmpqmbj_foz\r\ndebug3: Sent message fd 5 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/root/.ansible/tmp/ansible-tmp-1633310998.6758552-31766-142775221451680/AnsiballZ_os_server.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:26105\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 26105 bytes at 98304\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<10.8.29.101> ESTABLISH SSH CONNECTION FOR USER: root
<10.8.29.101> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o ControlPath=/HOME/QSECOFR/.ansible/cp/e4d687fc01 10.8.29.101 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1633310998.6758552-31766-142775221451680/ /root/.ansible/tmp/ansible-tmp-1633310998.6758552-31766-142775221451680/AnsiballZ_os_server.py && sleep 0'"'"''
<10.8.29.101> (0, b'', b'OpenSSH_8.1p1, OpenSSL 1.1.1g  21 Apr 2020\r\ndebug1: Reading configuration data /QOpenSys/etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.8.29.101 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 31737\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<10.8.29.101> ESTABLISH SSH CONNECTION FOR USER: root
<10.8.29.101> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o ControlPath=/HOME/QSECOFR/.ansible/cp/e4d687fc01 10.8.29.101 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1633310998.6758552-31766-142775221451680/ /root/.ansible/tmp/ansible-tmp-1633310998.6758552-31766-142775221451680/AnsiballZ_os_server.py && sleep 0'"'"''
<10.8.29.101> (0, b'', b'OpenSSH_8.1p1, OpenSSL 1.1.1g  21 Apr 2020\r\ndebug1: Reading configuration data /QOpenSys/etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.8.29.101 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 31737\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
<10.8.29.101> ESTABLISH SSH CONNECTION FOR USER: root
<10.8.29.101> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o ControlPath=/HOME/QSECOFR/.ansible/cp/e4d687fc01 -tt 10.8.29.101 '/bin/sh -c '"'"'/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1633310998.6758552-31766-142775221451680/AnsiballZ_os_server.py && sleep 0'"'"''
<10.8.29.101> (0, b'\r\n{"skipped": true, "msg": "remote module (os_server) does not support check mode", "invocation": {"module_args": {"auth": {"auth_url": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "project_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "project_domain_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "user_domain_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"}, "name": "VM-BUILD_9060", "verify": false, "state": "absent", "validate_certs": false}}}\r\n', b'OpenSSH_8.1p1, OpenSSL 1.1.1g  21 Apr 2020\r\ndebug1: Reading configuration data /QOpenSys/etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.8.29.101 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 31737\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 10.8.29.101 closed.\r\n')
<10.8.29.101> ESTABLISH SSH CONNECTION FOR USER: root
<10.8.29.101> SSH: EXEC sshpass -d12 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'User="root"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o ControlPath=/HOME/QSECOFR/.ansible/cp/e4d687fc01 10.8.29.101 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1633310998.6758552-31766-142775221451680/ > /dev/null 2>&1 && sleep 0'"'"''
<10.8.29.101> (0, b'', b'OpenSSH_8.1p1, OpenSSL 1.1.1g  21 Apr 2020\r\ndebug1: Reading configuration data /QOpenSys/etc/ssh/ssh_config\r\ndebug2: resolve_canonicalize: hostname 10.8.29.101 is address\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 31737\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
skipping: [localhost] => {
    "changed": false,
 "invocation": {
        "module_args": {
            "auth": {
                "auth_url": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "project_domain_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "project_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "user_domain_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
            },
            "name": "VM-BUILD_9060",
            "state": "absent",
            "validate_certs": false,
            "verify": false
        }
    },
    "msg": "remote module (os_server) does not support check mode"
}

PLAY RECAP *************************************************************************************************************************************************
localhost                  : ok=9    changed=3    unreachable=0    failed=1    skipped=6    rescued=0    ignored=0

Regards

mad5bo commented 2 years ago

Take out --check