summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2018-12-05 16:48:03 -0500
committerMichael Scherer <misc@redhat.com>2018-12-05 16:48:03 -0500
commit200253f66d6c21b85bc2945462bf20b4c1b1c632 (patch)
tree3df8d7bed1f5e2dc9717f09853a8cbe55cdae337 /roles
parent69df591b4a0a976388073c8f886f3c714b8ece8e (diff)
Rewite the tasks
Diffstat (limited to 'roles')
-rw-r--r--roles/deploy_website/tasks/main.yml20
1 files changed, 14 insertions, 6 deletions
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 }}"