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: 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

View file

@ -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