diff --git a/defaults/main.yml b/defaults/main.yml index 1f8e25e..62c08e5 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 \ No newline at end of file diff --git a/tasks/main.yml b/tasks/main.yml index fd12518..3420788 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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}}"