sec.config.json.sync.yml
540 Bytes
# copy sec.config.json to remote openresty server and reload nginx
- hosts: sec
tasks:
- name: copy lua and config files
template:
src: '{{ item }}'
dest: /usr/local/openresty/nginx/conf/
with_items:
- 'sec/nginx.conf'
- 'sec/sec.lua'
- name: copy sec.config.json to remote host
copy:
src: /root/.cert/sec.config.json
dest: /usr/local/openresty/nginx/conf/sec.config.json
- name: reload nginx
shell: '/usr/local/openresty/nginx/sbin/nginx -s reload'