summaryrefslogtreecommitdiff
path: root/roles/sublab_web/tasks/as_webuser.yaml
blob: c6725aacace30506af8a0d24b0409d697edd1c3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: Put rebuild script
  template:
    dest="/var/www/{{sublab_web_server_name}}/website-rebuild.sh"
    src=website-rebuild.sh.j2
    mode=0755
  notify: Rebuild subweb website

# Updates to git are pushed automatically and should not
# go through ansible - this is for initial deployment only
- name: Clone sublab website
  git:
    dest="/var/www/{{sublab_web_server_name}}/htdocs"
    repo="git://{{ groups['gitservers'][0] }}/website"
    accept_hostkey=yes
    update=no
  notify: Rebuild subweb website