add branch variable chainetv

This commit is contained in:
vincent 2019-04-29 16:45:31 +02:00
parent 0fee19d120
commit 2c7efe0957
2 changed files with 5 additions and 1 deletions

View File

@ -11,3 +11,4 @@ exec_user: root
exec_group: root
repo: gitea@pi2:vincent/chainetv_web.git
force_site_update: false
chainetv_repo_branch: master

View File

@ -10,6 +10,7 @@
dest: "/tmp/{{name}}" # required. The path of where the repository should be checked out. This parameter is required, unless C(clone) is set to C(no).
repo: "{{repo}}" # required. git, SSH, or HTTP(S) protocol address of the git repository.
clone: yes # not required. If C(no), do not clone the repository if it does not exist locally
version: "{{chainetv_repo_branch}}"
when: location_stat.stat.exists == false or force_site_update == true
- name: compile client source
@ -23,7 +24,9 @@
when: location_stat.stat.exists == false or force_site_update == true
delegate_to: "{{ inventory_hostname }}"
become: yes
notify:
- restart nginx
- restart service
- name:
file:
path: "/tmp/{{name}}"