Authored by Your Name

add

... ... @@ -4,6 +4,6 @@ host_key_checking = False
private_key_file = /etc/ansible/key/yoho_server
# default host file is test
hostfile = ./inventories/test/hosts
hostfile = ./inventories/test
roles_path = ./roles
... ...
- hosts: java-nginx
- hosts: server1
roles:
- openresty
... ...
... ... @@ -5,17 +5,17 @@
- name: copy lualib files to openresty
copy:
src: lualib/resty/
dest: {{ path }}/lualib/resty/
dest: "{{ path }}/lualib/resty/"
- name: copy yoho lua files to openresty
copy:
src: nginx/conf/
dest: {{ path }}/nginx/conf/
dest: "{{ path }}/nginx/conf/"
- name: update nginx upstream for file - [nginx.conf]
- name: update nginx upstream for file -nginx.conf
template:
src: nginx.conf.j2
dest: {{ path }}/nginx/conf
\ No newline at end of file
dest: "{{ path }}/nginx/conf"
... ...
10.66.200.11
... ...