[ncontu@cmd-config cmd]$ ansible-playbook playbooks/test.yml -e “variable_host=127.0.0.1”
[DEPRECATION WARNING]: The TRANSFORM_INVALID_GROUP_CHARS settings is set to allow bad characters in group names by default, this will change, but still be user configurable on
deprecation. This feature will be removed in version 2.10. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
PLAY [127.0.0.1] ***************************************************************************************************************************************************************
TASK [Gathering Facts] *********************************************************************************************************************************************************
ok: [127.0.0.1]
TASK [Get PHP version from site] ***********************************************************************************************************************************************
ok: [127.0.0.1]
TASK [Show PHP version from site] **********************************************************************************************************************************************
ok: [127.0.0.1] => {
“PHP_SITE_RESPONSE”: {
“cache_control”: “max-age=0”,
“changed”: false,
“connection”: “close”,
“content”: “{"announcement":true,"tags":["security"],"date":"19 Mar 2020","source":[{"filename":"php-7.2.29.tar.bz2","name":"PHP 7.2.29 (tar.bz2)","sha256":"eaa1f5503f2bf0c8569ec4ae80ffd8ca8cbc260f01c2503dd0e83dfc9cf0b923","date":"19 Mar 2020"},{"filename":"php-7.2.29.tar.gz","name":"PHP 7.2.29 (tar.gz)","sha256":"ea5c96309394a03a38828cc182058be0c09dde1f00f35809622c2d05c50ee890","date":"19 Mar 2020"},{"filename":"php-7.2.29.tar.xz","name":"PHP 7.2.29 (tar.xz)","sha256":"b117de74136bf4b439d663be9cf0c8e06a260c1f340f6b75ccadb609153a7fe8","date":"19 Mar 2020"}],"version":"7.2.29"}”,
“content_language”: “en”,
“content_type”: “application/json”,
“cookies”: {
“COUNTRY”: “NA%2C208.77.65.47”
},
“cookies_string”: “COUNTRY=NA%2C208.77.65.47”,
“date”: “Fri, 10 Apr 2020 18:05:04 GMT”,
“elapsed”: 0,
“etag”: “"myra-2a0383c2"”,
“expires”: “Fri, 10 Apr 2020 18:05:04 GMT”,
“failed”: false,
“json”: {
“announcement”: true,
“date”: “19 Mar 2020”,
“source”: [
{
“date”: “19 Mar 2020”,
“filename”: “php-7.2.29.tar.bz2”,
“name”: “PHP 7.2.29 (tar.bz2)”,
“sha256”: “eaa1f5503f2bf0c8569ec4ae80ffd8ca8cbc260f01c2503dd0e83dfc9cf0b923”
},
{
“date”: “19 Mar 2020”,
“filename”: “php-7.2.29.tar.gz”,
“name”: “PHP 7.2.29 (tar.gz)”,
“sha256”: “ea5c96309394a03a38828cc182058be0c09dde1f00f35809622c2d05c50ee890”
},
{
“date”: “19 Mar 2020”,
“filename”: “php-7.2.29.tar.xz”,
“name”: “PHP 7.2.29 (tar.xz)”,
“sha256”: “b117de74136bf4b439d663be9cf0c8e06a260c1f340f6b75ccadb609153a7fe8”
}
],
“tags”: [
“security”
],
“version”: “7.2.29”
},
“msg”: “OK (unknown bytes)”,
“redirected”: false,
“server”: “myracloud”,
“set_cookie”: “COUNTRY=NA%2C208.77.65.47; expires=Fri, 17-Apr-2020 18:05:04 GMT; Max-Age=604800; path=/; domain=.php.net”,
“status”: 200,
“transfer_encoding”: “chunked”,
“url”: “https://www.php.net/releases/?json&version=7.2”,
“x_frame_options”: “SAMEORIGIN”
}
}
PLAY RECAP *********************************************************************************************************************************************************************
127.0.0.1 : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0