From 200253f66d6c21b85bc2945462bf20b4c1b1c632 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 5 Dec 2018 16:48:03 -0500 Subject: Rewite the tasks --- roles/deploy_website/tasks/main.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'roles/deploy_website/tasks') diff --git a/roles/deploy_website/tasks/main.yml b/roles/deploy_website/tasks/main.yml index 3111048..c37e2ae 100644 --- a/roles/deploy_website/tasks/main.yml +++ b/roles/deploy_website/tasks/main.yml @@ -1,10 +1,18 @@ --- -- yum: name={{ item }} state=installed - with_items: - - git +- yum: + name: + - git + state: installed -- file: dest={{ checkout_dest }} state=directory +- file: + dest: "{{ checkout_dest }}" + state: directory -- git: repo={{ git_repo }} dest={{ checkout_dest }} +- git: + repo: "{{ git_repo }}" + dest: "{{ checkout_dest }}" -- cron: name="{{ git_repo }} autoupdate" hour=* job="cd {{ checkout_dest }} ; git pull --rebase -q ; cp -f -R {{ subdir }} {{ destination }}" +- cron: + name: "{{ git_repo }} autoupdate" + hour: "*" + job: "cd {{ checkout_dest }} ; git pull --rebase -q ; cp -f -R {{ subdir }} {{ destination }}" -- cgit