This repository was archived by the owner on Jul 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathupdater.yml
More file actions
46 lines (44 loc) · 1.68 KB
/
updater.yml
File metadata and controls
46 lines (44 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
- include: common.yml
- hosts: updater
vars:
- roswell_version: master
- extracter_deploy_path: /srv/www/quickdocs-extracter
- updater_deploy_path: /srv/www/quickdocs-updater
pre_tasks:
- user: name=git home=/srv/git
sudo: yes
- user: name=www home=/srv/www
sudo: yes
- shell: chmod 777 /srv/www
sudo: yes
roles:
- roswell
- { role: quickdocs-extracter, deploy_path: "{{ extracter_deploy_path }}" }
- { role: quickdocs-updater, deploy_path: "{{ updater_deploy_path }}" }
tasks:
- name: check if docker image exists
shell: docker images | grep quickdocs/quickdocs-extracter
register: docker_image_exists
- name: docker build
shell: scripts/build-docker-image chdir="{{ extracter_deploy_path }}"
when: docker_image_exists == false
- name: source-registry configuration directory
file: path=~/.config/common-lisp/source-registry.conf.d/ state=directory
- name: source-registry configuration file
file: path=~/.config/common-lisp/source-registry.conf.d/local.conf state=touch
- name: add updater to central registry
lineinfile:
dest=~/.config/common-lisp/source-registry.conf.d/local.conf
regexp="{{ updater_deploy_path }}"
line="(:directory \"{{ updater_deploy_path }}\")"
state=present
insertafter=EOF
- name: add extracter to central registry
lineinfile:
dest=~/.config/common-lisp/source-registry.conf.d/local.conf
regexp="{{ extracter_deploy_path }}"
line="(:directory \"{{ extracter_deploy_path }}\")"
state=present
insertafter=EOF
- shell: qlot install
chdir="{{ updater_deploy_path }}"