From 638109af89f0f611be46efe827f91acaff0a5841 Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 6 Sep 2014 02:24:55 +0200 Subject: [PATCH] fix file deletion --- ansible/play.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ansible/play.yml b/ansible/play.yml index dcf0f2b..ca41620 100644 --- a/ansible/play.yml +++ b/ansible/play.yml @@ -36,8 +36,10 @@ alternatives: name=php link=/usr/bin/php path=/usr/bin/hhvm - name: add laravel nginx config. template: src=laravel.conf dest=/etc/nginx/conf.d/laravel.conf owner=nginx group=nginx mode=0644 - - name: remove other websites. - command: rm /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/example_ssl.conf + - name: remove default vhost. + file: path=/etc/nginx/conf.d/default.conf state=absent + - name: remove default_ssl vhost. + file: path=/etc/nginx/conf.d/example_ssl.conf state=absent - name: restart nginx service: name=nginx state=restarted - name: download composer