root@cssosbe04-b04:/home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook# ansible-playbook -vvv modify_schedule_ts03_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_vv_playbook.yml statically imported: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/tasks/create_schedule_playbook.yml statically imported: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/tasks/modify_schedule_playbook.yml statically imported: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/tasks/delete_schedule_playbook.yml PLAYBOOK: modify_schedule_ts03_playbook.yml ******************************************************************************************************* 1 plays in modify_schedule_ts03_playbook.yml PLAY [localhost] ********************************************************************************************************************************** TASK [Gathering Facts] **************************************************************************************************************************** task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/modify_schedule_ts03_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-1543491588.5368695-18141969994045 `" && echo ansible-tmp-1543491588.5368695-18141969994045="` echo /root/.ansible/tmp/ansible-tmp-1543491588.5368695-18141969994045 `" ) && 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-5991c3w8qhab/tmpryfs3tvf TO /root/.ansible/tmp/ansible-tmp-1543491588.5368695-18141969994045/AnsiballZ_setup.py <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1543491588.5368695-18141969994045/ /root/.ansible/tmp/ansible-tmp-1543491588.5368695-18141969994045/AnsiballZ_setup.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1543491588.5368695-18141969994045/AnsiballZ_setup.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1543491588.5368695-18141969994045/ > /dev/null 2>&1 && sleep 0' ok: [localhost] META: ran handlers TASK [MODIFY:TS03, Modify an non-existent schedule.] ********************************************************************************************** task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/modify_schedule_ts03_playbook.yml:5 ok: [localhost] => { "ansible_facts": { "base_volume_name": "An_vol_SS_01", "compression": null, "cpg": "Chef_FC", "expiration_hours": null, "expiration_time": null, "expiration_unit": "Hours", "read_only": "false", "retention_hours": null, "retention_time": null, "retention_unit": "Hours", "size": 1, "size_unit": "GiB", "snap_cpg": "Chef_FC", "snapshot_name": "Ansible_volume_SS_snap_01", "ss_spc_alloc_limit_pct": null, "ss_spc_alloc_warning_pct": null, "state": "present", "storage_system_ip": "192.168.67.6", "storage_system_password": "3pardata", "storage_system_username": "3paradm", "type": "thin", "usr_spc_alloc_limit_pct": null, "usr_spc_alloc_warning_pct": null, "volume_name": "An_vol_SS_01" }, "ansible_included_var_files": [ "/home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/properties/create_schedule_ts02_properties.yml" ], "changed": false } TASK [Create VV "An_vol_SS_01"] ******************************************************************************************************************* task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/tasks/create_vv_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-1543491590.4233122-2371115597371 `" && echo ansible-tmp-1543491590.4233122-2371115597371="` echo /root/.ansible/tmp/ansible-tmp-1543491590.4233122-2371115597371 `" ) && sleep 0' Using module file /home/stack/hpe3par_ansible_module/Modules/hpe3par_volume.py <127.0.0.1> PUT /root/.ansible/tmp/ansible-local-5991c3w8qhab/tmpgszpdorj TO /root/.ansible/tmp/ansible-tmp-1543491590.4233122-2371115597371/AnsiballZ_hpe3par_volume.py <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1543491590.4233122-2371115597371/ /root/.ansible/tmp/ansible-tmp-1543491590.4233122-2371115597371/AnsiballZ_hpe3par_volume.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1543491590.4233122-2371115597371/AnsiballZ_hpe3par_volume.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1543491590.4233122-2371115597371/ > /dev/null 2>&1 && sleep 0' ok: [localhost] => { "changed": false, "invocation": { "module_args": { "compression": null, "cpg": "Chef_FC", "expiration_hours": null, "keep_vv": null, "new_name": null, "retention_hours": null, "rm_exp_time": false, "rm_ss_spc_alloc_limit": false, "rm_ss_spc_alloc_warning": false, "rm_usr_spc_alloc_limit": false, "rm_usr_spc_alloc_warning": false, "size": 1.0, "size_unit": "GiB", "snap_cpg": "Chef_FC", "ss_spc_alloc_limit_pct": null, "ss_spc_alloc_warning_pct": null, "state": "present", "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", "type": "thin", "usr_spc_alloc_limit_pct": null, "usr_spc_alloc_warning_pct": null, "volume_name": "An_vol_SS_01", "wait_for_task_to_end": false } }, "msg": "Volume already present" } TASK [Create a schedule to trigger every hour] **************************************************************************************************** task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/modify_schedule_ts03_playbook.yml:12 ok: [localhost] => { "ansible_facts": { "base_volume_name": "An_vol_SS_01", "expiration_time": 2, "expiration_unit": "Hours", "read_only": null, "retention_time": 1, "retention_unit": "Hours", "schedule_name": "Ansible_schedule_01", "state": "create_schedule", "storage_system_ip": "192.168.67.6", "storage_system_password": "3pardata", "storage_system_username": "3paradm", "task_freq": "8 * * * *" }, "ansible_included_var_files": [ "/home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/properties/create_schedule_ts01_properties.yml" ], "changed": false } TASK [Create schedule] **************************************************************************************************************************** task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/tasks/create_schedule_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-1543491592.2134864-78327917429318 `" && echo ansible-tmp-1543491592.2134864-78327917429318="` echo /root/.ansible/tmp/ansible-tmp-1543491592.2134864-78327917429318 `" ) && sleep 0' Using module file /home/stack/hpe3par_ansible_module/Modules/hpe3par_snapshot.py <127.0.0.1> PUT /root/.ansible/tmp/ansible-local-5991c3w8qhab/tmp1s1_xco6 TO /root/.ansible/tmp/ansible-tmp-1543491592.2134864-78327917429318/AnsiballZ_hpe3par_snapshot.py <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1543491592.2134864-78327917429318/ /root/.ansible/tmp/ansible-tmp-1543491592.2134864-78327917429318/AnsiballZ_hpe3par_snapshot.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1543491592.2134864-78327917429318/AnsiballZ_hpe3par_snapshot.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1543491592.2134864-78327917429318/ > /dev/null 2>&1 && sleep 0' changed: [localhost] => { "changed": true, "invocation": { "module_args": { "allow_remote_copy_parent": null, "base_volume_name": "An_vol_SS_01", "expiration_hours": 0, "expiration_time": 2, "expiration_unit": "Hours", "new_name": null, "new_schedule_name": null, "priority": null, "read_only": null, "retention_hours": 0, "retention_time": 1, "retention_unit": "Hours", "rm_exp_time": null, "schedule_name": "Ansible_schedule_01", "snapshot_name": null, "state": "create_schedule", "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", "task_freq": "8 * * * *" } }, "msg": "Created Schedule Ansible_schedule_01 successfully." } TASK [pause] ************************************************************************************************************************************** task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/modify_schedule_ts03_playbook.yml:17 [pause] Press Enter: ok: [localhost] => { "changed": false, "delta": 26, "echo": true, "rc": 0, "start": "2018-11-29 06:39:55.371812", "stderr": "", "stdout": "Paused for 0.45 minutes", "stop": "2018-11-29 06:40:22.205777", "user_input": "" } TASK [Modify a non-existent schedule] ************************************************************************************************************* task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/modify_schedule_ts03_playbook.yml:22 ok: [localhost] => { "ansible_facts": { "new_schedule_name": "New_Ansible_schedule_01", "schedule_name": "non_existent_schd_name", "state": "modify_schedule", "storage_system_ip": "192.168.67.6", "storage_system_password": "3pardata", "storage_system_username": "3paradm", "task_freq": "8 * * * *" }, "ansible_included_var_files": [ "/home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/properties/modify_schedule_ts03_properties.yml" ], "changed": false } TASK [Modify schedule] **************************************************************************************************************************** task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/tasks/modify_schedule_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-1543491622.4399107-244636196747899 `" && echo ansible-tmp-1543491622.4399107-244636196747899="` echo /root/.ansible/tmp/ansible-tmp-1543491622.4399107-244636196747899 `" ) && sleep 0' Using module file /home/stack/hpe3par_ansible_module/Modules/hpe3par_snapshot.py <127.0.0.1> PUT /root/.ansible/tmp/ansible-local-5991c3w8qhab/tmppm22fsr2 TO /root/.ansible/tmp/ansible-tmp-1543491622.4399107-244636196747899/AnsiballZ_hpe3par_snapshot.py <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1543491622.4399107-244636196747899/ /root/.ansible/tmp/ansible-tmp-1543491622.4399107-244636196747899/AnsiballZ_hpe3par_snapshot.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1543491622.4399107-244636196747899/AnsiballZ_hpe3par_snapshot.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1543491622.4399107-244636196747899/ > /dev/null 2>&1 && sleep 0' ok: [localhost] => { "changed": false, "invocation": { "module_args": { "allow_remote_copy_parent": null, "base_volume_name": null, "expiration_hours": 0, "expiration_time": null, "expiration_unit": "Hours", "new_name": null, "new_schedule_name": "New_Ansible_schedule_01", "priority": null, "read_only": null, "retention_hours": 0, "retention_time": null, "retention_unit": "Hours", "rm_exp_time": null, "schedule_name": "non_existent_schd_name", "snapshot_name": null, "state": "modify_schedule", "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", "task_freq": "8 * * * *" } }, "msg": "Schedule does not exist" } TASK [pause] ************************************************************************************************************************************** task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/modify_schedule_ts03_playbook.yml:29 [pause] Press Enter: ok: [localhost] => { "changed": false, "delta": 27, "echo": true, "rc": 0, "start": "2018-11-29 06:40:24.417175", "stderr": "", "stdout": "Paused for 0.45 minutes", "stop": "2018-11-29 06:40:51.466267", "user_input": "" } TASK [Delete schedule] **************************************************************************************************************************** task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/tasks/delete_schedule_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-1543491651.5786471-161399628312259 `" && echo ansible-tmp-1543491651.5786471-161399628312259="` echo /root/.ansible/tmp/ansible-tmp-1543491651.5786471-161399628312259 `" ) && sleep 0' Using module file /home/stack/hpe3par_ansible_module/Modules/hpe3par_snapshot.py <127.0.0.1> PUT /root/.ansible/tmp/ansible-local-5991c3w8qhab/tmpavz0ghv2 TO /root/.ansible/tmp/ansible-tmp-1543491651.5786471-161399628312259/AnsiballZ_hpe3par_snapshot.py <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1543491651.5786471-161399628312259/ /root/.ansible/tmp/ansible-tmp-1543491651.5786471-161399628312259/AnsiballZ_hpe3par_snapshot.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1543491651.5786471-161399628312259/AnsiballZ_hpe3par_snapshot.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1543491651.5786471-161399628312259/ > /dev/null 2>&1 && sleep 0' ok: [localhost] => { "changed": false, "invocation": { "module_args": { "allow_remote_copy_parent": null, "base_volume_name": null, "expiration_hours": 0, "expiration_time": null, "expiration_unit": "Hours", "new_name": null, "new_schedule_name": null, "priority": null, "read_only": null, "retention_hours": 0, "retention_time": null, "retention_unit": "Hours", "rm_exp_time": null, "schedule_name": "non_existent_schd_name", "snapshot_name": null, "state": "delete_schedule", "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", "task_freq": null } }, "msg": "Schedule does not exist" } META: ran handlers META: ran handlers PLAY RECAP **************************************************************************************************************************************** localhost : ok=10 changed=1 unreachable=0 failed=0