diff --git a/defaults/main.yml b/defaults/main.yml index 62c08e5..71f73b1 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -9,6 +9,6 @@ venv_name: "{{name}}" backendfolder: backend exec_user: root exec_group: root -repo: gitea@pi2:vincent/chainetv_web.git +chainetv_repo: gitea@git.{{ domain.name }}: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 cb86576..9c38fba 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,7 +8,7 @@ - name: install source file if not exist git: 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. + repo: "{{chainetv_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