role git-repos: add option to force update

This commit is contained in:
Julian Labus 2018-09-11 14:22:59 +02:00
parent 81393955a0
commit 5e1a75965c
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A
2 changed files with 4 additions and 0 deletions

View file

@ -8,12 +8,15 @@ common_repos:
backend-scripts:
repo_url: https://github.com/freifunk-mwu/backend-scripts.git
version: ansible
force: no
icvpn-meta:
repo_url: https://github.com/freifunk/icvpn-meta.git
version: master
force: no
icvpn-scripts:
repo_url: https://github.com/freifunk/icvpn-scripts.git
version: master
force: no
prometheus_components:
- node_exporter

View file

@ -19,5 +19,6 @@
repo: "{{ item.value.repo_url }}"
dest: "/home/admin/clones/{{ item.key }}"
version: "{{ item.value.version }}"
force: "{{ item.value.force }}"
with_dict: "{{ common_repos }}"
become: false