aboutsummaryrefslogtreecommitdiff
path: root/roles/website
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2022-09-12 22:52:19 +0000
committerKumar Damani <me@kumardamani.net>2022-09-12 22:52:19 +0000
commit6c8156a62ee472e5ecefdc1bc3f97b4dd8a72b68 (patch)
tree29a7dd97a09f75d758bcd9513f053003394349e3 /roles/website
parent0a5f8b89f7e7316e79061b156e5a716ec350fc3b (diff)
website updateswebsites
Diffstat (limited to 'roles/website')
-rw-r--r--roles/website/tasks/main.yaml10
1 files changed, 9 insertions, 1 deletions
diff --git a/roles/website/tasks/main.yaml b/roles/website/tasks/main.yaml
index 9725f2d..66bc955 100644
--- a/roles/website/tasks/main.yaml
+++ b/roles/website/tasks/main.yaml
@@ -17,7 +17,7 @@
- name: 'Clone all the website project repos'
git:
repo: '{{ item.git_url }}'
- dest: '{{ sites_data_root }}/{{ item.name }}/html'
+ dest: '/home/{{ ansible_user }}/{{ item.name }}'
depth: 1
update: true
force: true
@@ -25,3 +25,11 @@
umask: '002'
when: 'item.git_url is defined'
loop: '{{ websites }}'
+
+- name: 'Move all the html bases to data root'
+ copy:
+ src: '/home/{{ ansible_user }}/{{ item.name }}/{{ item.html_root }}/'
+ dest: '{{ sites_data_root }}/{{ item.name }}/html/'
+ remote_src: true
+ when: 'item.git_url is defined'
+ loop: '{{ websites }}'