- 论坛徽章:
- 0
|
回复 6# sunzhiguolu
内容具体是这样子
192.168.1.1 | SUCCESS => {
"changed": true,
"rc": 0,
"stderr": "",
"stdout": "------------------------------------------------------------------------------------------\r\n|http.server.listen | check failed| the value is 80|\r\n------------------------------------------------------------------------------------------\r\n|http.server.server_name | check ok| |\r\n------------------------------------------------------------------------------------------\r\n|http |[('proxy_cache_path', '/opt/proxy_temp levels=1:2 keys_zone=cache_one:4000m inactive=2d max_size=20g'), ('upstream', OrderedDict([('backend', OrderedDict([('server', '127.0.0.1:80 weight=1'), ('sticky', None)]))])), ('include', 'mime.types'), ('default_type', 'application/octet-stream'), ('sendfile', 'on'), ('keepalive_timeout', '65'), ('server', OrderedDict([('listen', '80'), ('server_name', 'localhost'), ('location', [OrderedDict([('/', OrderedDict([('proxy_cache', 'cache_one'), ('proxy_cache_valid', '200 304 12h'), ('proxy_cache_key', '$uri$is_args$args'), ('proxy_set_header', ['Host $host', 'X-Forwarded-For $remote_addr']), ('expires', '2d'), ('concat', 'on'), ('concat_max_files', '30'), ('root', '/apps/data/nginx_80'), ('index', 'index.html index.htm')]))]), OrderedDict([('= /50x.html', OrderedDict([('root', '/apps/data/nginx_80')]))]), OrderedDict([('= /nginx_status', OrderedDict([('stub_status', 'on'), ('access_log', 'off'), ('allow', '127.0.0.1'), ('deny', 'all')]))]), OrderedDict([('= /status', OrderedDict([('include', 'fastcgi_params'), ('fastcgi_param', 'SCRIPT_FILENAME $document_root$fastcgi_script_name'), ('fastcgi_index', 'index.php'), ('fastcgi_pass', '127.0.0.1:9000')]))]), OrderedDict([('~ \\\\.php$', OrderedDict([('root', '/apps/data/nginx_80'), ('fastcgi_pass', '127.0.0.1:9000'), ('fastcgi_index', 'index.php'), ('fastcgi_param', 'SCRIPT_FILENAME $document_root$fastcgi_script_name'), ('include', 'fastcgi_params')]))])]), ('error_page', '500 502 503 504 /50x.html')]))]\r\n------------------------------------------------------------------------------------------\r\n|events |['worker_connections']\r\n------------------------------------------------------------------------------------------\r\n",
"stdout_lines": [
"------------------------------------------------------------------------------------------",
"|http.server.listen | check failed| the value is 80|",
"------------------------------------------------------------------------------------------",
"|http.server.server_name | check ok| |",
"------------------------------------------------------------------------------------------",
"|http |[('proxy_cache_path', '/opt/proxy_temp levels=1:2 keys_zone=cache_one:4000m inactive=2d max_size=20g'), ('upstream', OrderedDict([('backend', OrderedDict([('server', '127.0.0.1:80 weight=1'), ('sticky', None)]))])), ('include', 'mime.types'), ('default_type', 'application/octet-stream'), ('sendfile', 'on'), ('keepalive_timeout', '65'), ('server', OrderedDict([('listen', '80'), ('server_name', 'localhost'), ('location', [OrderedDict([('/', OrderedDict([('proxy_cache', 'cache_one'), ('proxy_cache_valid', '200 304 12h'), ('proxy_cache_key', '$uri$is_args$args'), ('proxy_set_header', ['Host $host', 'X-Forwarded-For $remote_addr']), ('expires', '2d'), ('concat', 'on'), ('concat_max_files', '30'), ('root', '/apps/data/nginx_80'), ('index', 'index.html index.htm')]))]), OrderedDict([('= /50x.html', OrderedDict([('root', '/apps/data/nginx_80')]))]), OrderedDict([('= /nginx_status', OrderedDict([('stub_status', 'on'), ('access_log', 'off'), ('allow', '127.0.0.1'), ('deny', 'all')]))]), OrderedDict([('= /status', OrderedDict([('include', 'fastcgi_params'), ('fastcgi_param', 'SCRIPT_FILENAME $document_root$fastcgi_script_name'), ('fastcgi_index', 'index.php'), ('fastcgi_pass', '127.0.0.1:9000')]))]), OrderedDict([('~ \\\\.php$', OrderedDict([('root', '/apps/data/nginx_80'), ('fastcgi_pass', '127.0.0.1:9000'), ('fastcgi_index', 'index.php'), ('fastcgi_param', 'SCRIPT_FILENAME $document_root$fastcgi_script_name'), ('include', 'fastcgi_params')]))])]), ('error_page', '500 502 503 504 /50x.html')]))]",
"------------------------------------------------------------------------------------------",
"|events |['worker_connections']",
"------------------------------------------------------------------------------------------"
]
}
192.168.1.2 | SUCCESS => {
"changed": true,
"rc": 0,
"stderr": "",
"stdout": "------------------------------------------------------------------------------------------\r\n|http.server.listen | check failed| the value is 80|\r\n------------------------------------------------------------------------------------------\r\n|http.server.server_name | check ok| |\r\n------------------------------------------------------------------------------------------\r\n|http |[('proxy_cache_path', '/opt/proxy_temp levels=1:2 keys_zone=cache_one:4000m inactive=2d max_size=20g'), ('upstream', [OrderedDict([('backend', OrderedDict([('server', '127.0.0.1:80 weight=1'), ('sticky', None)]))]), OrderedDict([('tomcat', OrderedDict([('server', ['127.0.0.1:80 weight=1', '127.0.0.1:8080 weight=1']), ('sticky', None)]))])]), ('include', 'mime.types'), ('default_type', 'application/octet-stream'), ('sendfile', 'on'), ('keepalive_timeout', '65'), ('server', OrderedDict([('listen', '80'), ('server_name', 'localhost'), ('location', [OrderedDict([('/', OrderedDict([('proxy_cache', 'cache_one'), ('proxy_cache_valid', '200 304 12h'), ('proxy_cache_key', '$uri$is_args$args'), ('proxy_set_header', ['Host $host', 'X-Forwarded-For $remote_addr']), ('expires', '2d'), ('concat', 'on'), ('concat_max_files', '30'), ('root', '/apps/data/nginx_80'), ('index', 'index.html index.htm')]))]), OrderedDict([('= /50x.html', OrderedDict([('root', '/apps/data/nginx_80')]))]), OrderedDict([('= /nginx_status', OrderedDict([('stub_status', 'on'), ('access_log', 'off'), ('allow', '127.0.0.1'), ('deny', 'all')]))]), OrderedDict([('= /status', OrderedDict([('include', 'fastcgi_params'), ('fastcgi_param', 'SCRIPT_FILENAME $document_root$fastcgi_script_name'), ('fastcgi_index', 'index.php'), ('fastcgi_pass', '127.0.0.1:9000'), ('if', OrderedDict([('($query_string ~ /id/)', OrderedDict())]))]))]), OrderedDict([('~ \\\\.php$', OrderedDict([('root', '/apps/data/nginx_80'), ('fastcgi_pass', '127.0.0.1:9000'), ('fastcgi_index', 'index.php'), ('fastcgi_param', 'SCRIPT_FILENAME $document_root$fastcgi_script_name'), ('include', 'fastcgi_params')]))])]), ('error_page', '500 502 503 504 /50x.html')]))]\r\n------------------------------------------------------------------------------------------\r\n|events |['worker_connections']\r\n------------------------------------------------------------------------------------------\r\n",
"stdout_lines": [
"------------------------------------------------------------------------------------------",
"|http.server.listen | check failed| the value is 80|",
"------------------------------------------------------------------------------------------",
"|http.server.server_name | check ok| |",
"------------------------------------------------------------------------------------------",
"|http |[('proxy_cache_path', '/opt/proxy_temp levels=1:2 keys_zone=cache_one:4000m inactive=2d max_size=20g'), ('upstream', [OrderedDict([('backend', OrderedDict([('server', '127.0.0.1:80 weight=1'), ('sticky', None)]))]), OrderedDict([('tomcat', OrderedDict([('server', ['127.0.0.1:80 weight=1', '127.0.0.1:8080 weight=1']), ('sticky', None)]))])]), ('include', 'mime.types'), ('default_type', 'application/octet-stream'), ('sendfile', 'on'), ('keepalive_timeout', '65'), ('server', OrderedDict([('listen', '80'), ('server_name', 'localhost'), ('location', [OrderedDict([('/', OrderedDict([('proxy_cache', 'cache_one'), ('proxy_cache_valid', '200 304 12h'), ('proxy_cache_key', '$uri$is_args$args'), ('proxy_set_header', ['Host $host', 'X-Forwarded-For $remote_addr']), ('expires', '2d'), ('concat', 'on'), ('concat_max_files', '30'), ('root', '/apps/data/nginx_80'), ('index', 'index.html index.htm')]))]), OrderedDict([('= /50x.html', OrderedDict([('root', '/apps/data/nginx_80')]))]), OrderedDict([('= /nginx_status', OrderedDict([('stub_status', 'on'), ('access_log', 'off'), ('allow', '127.0.0.1'), ('deny', 'all')]))]), OrderedDict([('= /status', OrderedDict([('include', 'fastcgi_params'), ('fastcgi_param', 'SCRIPT_FILENAME $document_root$fastcgi_script_name'), ('fastcgi_index', 'index.php'), ('fastcgi_pass', '127.0.0.1:9000'), ('if', OrderedDict([('($query_string ~ /id/)', OrderedDict())]))]))]), OrderedDict([('~ \\\\.php$', OrderedDict([('root', '/apps/data/nginx_80'), ('fastcgi_pass', '127.0.0.1:9000'), ('fastcgi_index', 'index.php'), ('fastcgi_param', 'SCRIPT_FILENAME $document_root$fastcgi_script_name'), ('include', 'fastcgi_params')]))])]), ('error_page', '500 502 503 504 /50x.html')]))]",
"------------------------------------------------------------------------------------------",
"|events |['worker_connections']",
"------------------------------------------------------------------------------------------"
]
}
192.168.1.3 | SUCCESS => {
"changed": true,
"rc": 0,
"stderr": "",
"stdout": "------------------------------------------------------------------------------------------\r\n|http.server.listen | check failed| the value is 80|\r\n------------------------------------------------------------------------------------------\r\n|http.server.server_name | check ok| |\r\n------------------------------------------------------------------------------------------\r\n|http |[('proxy_cache_path', '/opt/proxy_temp levels=1:2 keys_zone=cache_one:4000m inactive=2d max_size=20g'), ('upstream', OrderedDict([('backend', OrderedDict([('server', '127.0.0.1:80 weight=1'), ('sticky', None)]))])), ('include', 'mime.types'), ('default_type', 'application/octet-stream'), ('sendfile', 'on'), ('keepalive_timeout', '65'), ('server', OrderedDict([('listen', '80'), ('server_name', 'localhost'), ('location', [OrderedDict([('/', OrderedDict([('proxy_cache', 'cache_one'), ('proxy_cache_valid', '200 304 12h'), ('proxy_cache_key', '$uri$is_args$args'), ('proxy_set_header', ['Host $host', 'X-Forwarded-For $remote_addr']), ('expires', '2d'), ('concat', 'on'), ('concat_max_files', '30'), ('root', '/apps/data/nginx_80'), ('index', 'index.html index.htm')]))]), OrderedDict([('= /50x.html', OrderedDict([('root', '/apps/data/nginx_80')]))]), OrderedDict([('= /nginx_status', OrderedDict([('stub_status', 'on'), ('access_log', 'off'), ('allow', '127.0.0.1'), ('deny', 'all')]))]), OrderedDict([('= /status', OrderedDict([('include', 'fastcgi_params'), ('fastcgi_param', 'SCRIPT_FILENAME $document_root$fastcgi_script_name'), ('fastcgi_index', 'index.php'), ('fastcgi_pass', '127.0.0.1:9000')]))]), OrderedDict([('~ \\\\.php$', OrderedDict([('root', '/apps/data/nginx_80'), ('fastcgi_pass', '127.0.0.1:9000'), ('fastcgi_index', 'index.php'), ('fastcgi_param', 'SCRIPT_FILENAME $document_root$fastcgi_script_name'), ('include', 'fastcgi_params')]))])]), ('error_page', '500 502 503 504 /50x.html')]))]\r\n------------------------------------------------------------------------------------------\r\n|events |['worker_connections']\r\n------------------------------------------------------------------------------------------\r\n",
"stdout_lines": [
"------------------------------------------------------------------------------------------",
"|http.server.listen | check failed| the value is 80|",
"------------------------------------------------------------------------------------------",
"|http.server.server_name | check ok| |",
"------------------------------------------------------------------------------------------",
"|http |[('proxy_cache_path', '/opt/proxy_temp levels=1:2 keys_zone=cache_one:4000m inactive=2d max_size=20g'), ('upstream', OrderedDict([('backend', OrderedDict([('server', '127.0.0.1:80 weight=1'), ('sticky', None)]))])), ('include', 'mime.types'), ('default_type', 'application/octet-stream'), ('sendfile', 'on'), ('keepalive_timeout', '65'), ('server', OrderedDict([('listen', '80'), ('server_name', 'localhost'), ('location', [OrderedDict([('/', OrderedDict([('proxy_cache', 'cache_one'), ('proxy_cache_valid', '200 304 12h'), ('proxy_cache_key', '$uri$is_args$args'), ('proxy_set_header', ['Host $host', 'X-Forwarded-For $remote_addr']), ('expires', '2d'), ('concat', 'on'), ('concat_max_files', '30'), ('root', '/apps/data/nginx_80'), ('index', 'index.html index.htm')]))]), OrderedDict([('= /50x.html', OrderedDict([('root', '/apps/data/nginx_80')]))]), OrderedDict([('= /nginx_status', OrderedDict([('stub_status', 'on'), ('access_log', 'off'), ('allow', '127.0.0.1'), ('deny', 'all')]))]), OrderedDict([('= /status', OrderedDict([('include', 'fastcgi_params'), ('fastcgi_param', 'SCRIPT_FILENAME $document_root$fastcgi_script_name'), ('fastcgi_index', 'index.php'), ('fastcgi_pass', '127.0.0.1:9000')]))]), OrderedDict([('~ \\\\.php$', OrderedDict([('root', '/apps/data/nginx_80'), ('fastcgi_pass', '127.0.0.1:9000'), ('fastcgi_index', 'index.php'), ('fastcgi_param', 'SCRIPT_FILENAME $document_root$fastcgi_script_name'), ('include', 'fastcgi_params')]))])]), ('error_page', '500 502 503 504 /50x.html')]))]",
"------------------------------------------------------------------------------------------",
"|events |['worker_connections']",
"------------------------------------------------------------------------------------------"
]
}
192.168.1.4 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh.",
"unreachable": true
}
|
|