From 44b306376ddd425acdb64a36fe77dfe7a9992a93 Mon Sep 17 00:00:00 2001 From: "zhifeng.jiang" Date: Wed, 2 Nov 2016 22:28:26 +0800 Subject: Fix ansible Syntax Error while loading YAML and separates docker,elk and nginx installing file. JIRA:QTIP-111 Change-Id: I8fe004b0edc86729e1beff07b406b568af60da89 Signed-off-by: zhifeng.jiang --- supporting/servers/roles/ngnix/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 supporting/servers/roles/ngnix/tasks/main.yml (limited to 'supporting/servers/roles/ngnix/tasks') diff --git a/supporting/servers/roles/ngnix/tasks/main.yml b/supporting/servers/roles/ngnix/tasks/main.yml new file mode 100644 index 00000000..8673b3d2 --- /dev/null +++ b/supporting/servers/roles/ngnix/tasks/main.yml @@ -0,0 +1,11 @@ +--- +- name: nginx is installed + become: true + package: name=nginx state=present +- name: qtip server configuration is generated + become: true + template: src={{ item }}.conf.j2 dest=/etc/nginx/sites-enabled/{{ item }}.conf + with_items: + - elk + notify: + - restart nginx -- cgit 1.2.3-korg