root@cssosbe04-b04:/home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook# ansible-playbook -vvv admit_rcg_target_ts02_playbook.yml ansible-playbook 2.7.2 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/stack/hpe3par_ansible_module/Modules'] ansible python module location = /usr/local/lib/python3.5/dist-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Using /etc/ansible/ansible.cfg as config file /etc/ansible/hosts did not meet host_list requirements, check plugin documentation if this is unexpected Skipping due to inventory source not existing or not being readable by the current user /etc/ansible/hosts did not meet script requirements, check plugin documentation if this is unexpected Skipping due to inventory source not existing or not being readable by the current user /etc/ansible/hosts did not meet yaml requirements, check plugin documentation if this is unexpected Skipping due to inventory source not existing or not being readable by the current user /etc/ansible/hosts did not meet ini requirements, check plugin documentation if this is unexpected /etc/ansible/hosts did not meet auto requirements, check plugin documentation if this is unexpected [WARNING]: Unable to parse /etc/ansible/hosts as an inventory source [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' statically imported: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/tasks/create_remote_copy_group_playbook.yml statically imported: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/tasks/admit_remote_copy_target_playbook.yml PLAYBOOK: admit_rcg_target_ts02_playbook.yml ****************************************************************************************************** 1 plays in admit_rcg_target_ts02_playbook.yml PLAY [localhost] ********************************************************************************************************************************** TASK [Gathering Facts] **************************************************************************************************************************** task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/admit_rcg_target_ts02_playbook.yml:2 <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0' <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1543573673.7833028-164077174495657 `" && echo ansible-tmp-1543573673.7833028-164077174495657="` echo /root/.ansible/tmp/ansible-tmp-1543573673.7833028-164077174495657 `" ) && sleep 0' Using module file /usr/local/lib/python3.5/dist-packages/ansible/modules/system/setup.py <127.0.0.1> PUT /root/.ansible/tmp/ansible-local-13950jgwlmkdx/tmpp9ydpji4 TO /root/.ansible/tmp/ansible-tmp-1543573673.7833028-164077174495657/AnsiballZ_setup.py <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1543573673.7833028-164077174495657/ /root/.ansible/tmp/ansible-tmp-1543573673.7833028-164077174495657/AnsiballZ_setup.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1543573673.7833028-164077174495657/AnsiballZ_setup.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1543573673.7833028-164077174495657/ > /dev/null 2>&1 && sleep 0' ok: [localhost] META: ran handlers TASK [Create rcg and admit remote copy target with valid RCG name] ******************************************************************************** task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/admit_rcg_target_ts02_playbook.yml:5 ok: [localhost] => { "ansible_facts": { "domain": null, "keep_snap": false, "local_snap_cpg": null, "local_user_cpg": null, "remote_copy_group_name": "ans_CreateRCG_t-001", "remote_copy_targets": [ { "target_mode": "periodic", "target_name": "CSSOS-SSA05" } ], "state": "present", "storage_system_ip": "192.168.67.6", "storage_system_password": "3pardata", "storage_system_username": "3paradm" }, "ansible_included_var_files": [ "/home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/properties/admit_rcg_target_ts02_properties.yml" ], "changed": false } TASK [Create RCG] ********************************************************************************************************************************* task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/tasks/create_remote_copy_group_playbook.yml:2 <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0' <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1543573675.6563456-195675574229908 `" && echo ansible-tmp-1543573675.6563456-195675574229908="` echo /root/.ansible/tmp/ansible-tmp-1543573675.6563456-195675574229908 `" ) && sleep 0' Using module file /home/stack/hpe3par_ansible_module/Modules/hpe3par_remote_copy.py <127.0.0.1> PUT /root/.ansible/tmp/ansible-local-13950jgwlmkdx/tmp5tclywat TO /root/.ansible/tmp/ansible-tmp-1543573675.6563456-195675574229908/AnsiballZ_hpe3par_remote_copy.py <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1543573675.6563456-195675574229908/ /root/.ansible/tmp/ansible-tmp-1543573675.6563456-195675574229908/AnsiballZ_hpe3par_remote_copy.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1543573675.6563456-195675574229908/AnsiballZ_hpe3par_remote_copy.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1543573675.6563456-195675574229908/ > /dev/null 2>&1 && sleep 0' ok: [localhost] => { "changed": false, "invocation": { "module_args": { "admit_volume_targets": null, "different_secondary_wwn": false, "discard_new_data": false, "domain": null, "full_sync": false, "keep_snap": false, "local_groups_direction": false, "local_remote_volume_pair_list": [], "local_snap_cpg": null, "local_user_cpg": null, "modify_targets": null, "no_resync_snapshot": false, "no_snapshot": false, "recovery_action": null, "remote_copy_group_name": "ans_CreateRCG_t-001", "remote_copy_targets": [ { "target_mode": "periodic", "target_name": "CSSOS-SSA05" } ], "remove_secondary_volume": false, "skip_initial_sync": false, "skip_promote": false, "skip_start": false, "skip_sync": false, "snapshot_name": null, "source_port": null, "starting_snapshots": null, "state": "present", "stop_groups": false, "storage_system_ip": "192.168.67.6", "storage_system_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "storage_system_username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "target_mode": null, "target_name": null, "target_port_wwn_or_ip": null, "unset_snap_cpg": false, "unset_user_cpg": false, "volume_auto_creation": false, "volume_name": null } }, "msg": "Remote Copy Group already present" } TASK [Admit target] ******************************************************************************************************************************* task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/admit_rcg_target_ts02_playbook.yml:10 ok: [localhost] => { "ansible_facts": { "local_remote_volume_pair_list": null, "remote_copy_group_name": "ans_CreateRCG_t-001", "state": "admit_target", "storage_system_ip": "192.168.67.6", "storage_system_password": "3pardata", "storage_system_username": "3paradm", "target_mode": "sync", "target_name": "CSSOS-SSA04" }, "ansible_included_var_files": [ "/home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/properties/admit_rcg_target_ts04_properties.yml" ], "changed": false } TASK [Admit RCG target] *************************************************************************************************************************** task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/tasks/admit_remote_copy_target_playbook.yml:2 <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0' <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1543573677.5576994-231105918001190 `" && echo ansible-tmp-1543573677.5576994-231105918001190="` echo /root/.ansible/tmp/ansible-tmp-1543573677.5576994-231105918001190 `" ) && sleep 0' Using module file /home/stack/hpe3par_ansible_module/Modules/hpe3par_remote_copy.py <127.0.0.1> PUT /root/.ansible/tmp/ansible-local-13950jgwlmkdx/tmp7wjcz1cw TO /root/.ansible/tmp/ansible-tmp-1543573677.5576994-231105918001190/AnsiballZ_hpe3par_remote_copy.py <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1543573677.5576994-231105918001190/ /root/.ansible/tmp/ansible-tmp-1543573677.5576994-231105918001190/AnsiballZ_hpe3par_remote_copy.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1543573677.5576994-231105918001190/AnsiballZ_hpe3par_remote_copy.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1543573677.5576994-231105918001190/ > /dev/null 2>&1 && sleep 0' changed: [localhost] => { "changed": true, "invocation": { "module_args": { "admit_volume_targets": null, "different_secondary_wwn": false, "discard_new_data": false, "domain": null, "full_sync": false, "keep_snap": false, "local_groups_direction": false, "local_remote_volume_pair_list": null, "local_snap_cpg": null, "local_user_cpg": null, "modify_targets": null, "no_resync_snapshot": false, "no_snapshot": false, "recovery_action": null, "remote_copy_group_name": "ans_CreateRCG_t-001", "remote_copy_targets": null, "remove_secondary_volume": false, "skip_initial_sync": false, "skip_promote": false, "skip_start": false, "skip_sync": false, "snapshot_name": null, "source_port": null, "starting_snapshots": null, "state": "admit_target", "stop_groups": false, "storage_system_ip": "192.168.67.6", "storage_system_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "storage_system_username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "target_mode": "sync", "target_name": "CSSOS-SSA04", "target_port_wwn_or_ip": null, "unset_snap_cpg": false, "unset_user_cpg": false, "volume_auto_creation": false, "volume_name": null } }, "msg": "Admit remote copy target CSSOS-SSA04 successful in remote copy group ans_CreateRCG_t-001." } META: ran handlers META: ran handlers PLAY RECAP **************************************************************************************************************************************** localhost : ok=5 changed=1 unreachable=0 failed=0