set $req_header "";
set $resp_header "";
header_filter_by_lua_block{
local h = ngx.req.get_headers();
for k, v in pairs(h) do
ngx.var.req_header = ngx.var.req_header .. k.."="..v.." ";
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@centos7 ansible]# cat ansible_check_owner.yml | |
--- | |
- name: Test stat | |
connection: local | |
hosts: 127.0.0.1 | |
tasks: | |
- name: Get stat of file | |
stat: | |
path: /root/a1.txt |