role git-repos: add option to force update
This commit is contained in:
parent
81393955a0
commit
5e1a75965c
2 changed files with 4 additions and 0 deletions
|
@ -8,12 +8,15 @@ common_repos:
|
||||||
backend-scripts:
|
backend-scripts:
|
||||||
repo_url: https://github.com/freifunk-mwu/backend-scripts.git
|
repo_url: https://github.com/freifunk-mwu/backend-scripts.git
|
||||||
version: ansible
|
version: ansible
|
||||||
|
force: no
|
||||||
icvpn-meta:
|
icvpn-meta:
|
||||||
repo_url: https://github.com/freifunk/icvpn-meta.git
|
repo_url: https://github.com/freifunk/icvpn-meta.git
|
||||||
version: master
|
version: master
|
||||||
|
force: no
|
||||||
icvpn-scripts:
|
icvpn-scripts:
|
||||||
repo_url: https://github.com/freifunk/icvpn-scripts.git
|
repo_url: https://github.com/freifunk/icvpn-scripts.git
|
||||||
version: master
|
version: master
|
||||||
|
force: no
|
||||||
|
|
||||||
prometheus_components:
|
prometheus_components:
|
||||||
- node_exporter
|
- node_exporter
|
||||||
|
|
|
@ -19,5 +19,6 @@
|
||||||
repo: "{{ item.value.repo_url }}"
|
repo: "{{ item.value.repo_url }}"
|
||||||
dest: "/home/admin/clones/{{ item.key }}"
|
dest: "/home/admin/clones/{{ item.key }}"
|
||||||
version: "{{ item.value.version }}"
|
version: "{{ item.value.version }}"
|
||||||
|
force: "{{ item.value.force }}"
|
||||||
with_dict: "{{ common_repos }}"
|
with_dict: "{{ common_repos }}"
|
||||||
become: false
|
become: false
|
||||||
|
|
Loading…
Reference in a new issue