mirror of
https://github.com/roles-ansible/role_akku_warning.git
synced 2024-08-16 10:09:50 +02:00
Update founding infos
This commit is contained in:
parent
9a7d417fe7
commit
b92ec405e4
3 changed files with 16 additions and 7 deletions
4
.github/FUNDING.yml
vendored
4
.github/FUNDING.yml
vendored
|
@ -1,5 +1,5 @@
|
||||||
# These are supported funding model platforms
|
# These are supported funding model platforms
|
||||||
|
|
||||||
# github: [do1jlr]
|
github: [do1jlr]
|
||||||
liberapay: L3D
|
liberapay: L3D
|
||||||
custom: https://paypal.me/c3woc
|
custom: ['https://paypal.me/c3woc']
|
||||||
|
|
|
@ -2,15 +2,23 @@
|
||||||
- name: Create directory for versionscheck
|
- name: Create directory for versionscheck
|
||||||
become: true
|
become: true
|
||||||
file:
|
file:
|
||||||
path: '/etc/ansible-version'
|
path: '/etc/.ansible-version'
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when: submodules_versioncheck|bool
|
when: submodules_versioncheck|bool
|
||||||
|
|
||||||
|
- name: check legacy playbook version
|
||||||
|
become: true
|
||||||
|
slurp:
|
||||||
|
src: "/etc/ansible-version/{{ playbook_version_path }}"
|
||||||
|
register: legacy_playbook_version
|
||||||
|
when: submodules_versioncheck|bool
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: check playbook version
|
- name: check playbook version
|
||||||
become: true
|
become: true
|
||||||
slurp:
|
slurp:
|
||||||
src: "{{ playbook_version_path }}"
|
src: "/etc/.ansible-version/{{ playbook_version_path }}"
|
||||||
register: playbook_version
|
register: playbook_version
|
||||||
when: submodules_versioncheck|bool
|
when: submodules_versioncheck|bool
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
@ -30,10 +38,11 @@
|
||||||
msg: "Your ansible module has the version '{{ playbook_version_number }}' and is outdated. You need to update it!"
|
msg: "Your ansible module has the version '{{ playbook_version_number }}' and is outdated. You need to update it!"
|
||||||
when:
|
when:
|
||||||
- playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck|bool
|
- playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck|bool
|
||||||
|
- legacy_playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck|bool
|
||||||
|
|
||||||
- name: write new version to remote disk
|
- name: write new version to remote disk
|
||||||
become: true
|
become: true
|
||||||
copy:
|
copy:
|
||||||
content: "{{ playbook_version_number }}"
|
content: "{{ playbook_version_number }}"
|
||||||
dest: "{{ playbook_version_path }}"
|
dest: "/etc/ansible-version/{{ playbook_version_path }}"
|
||||||
when: submodules_versioncheck|bool
|
when: submodules_versioncheck|bool
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
---
|
---
|
||||||
playbook_version_number: 2048 #should be over ninethousand
|
playbook_version_number: 4096 #should be over ninethousand
|
||||||
playbook_version_path: '/etc/ansible-version/role-akku-warning_chaos-bodensee_github.com.version'
|
playbook_version_path: 'role-akku-warning_chaos-bodensee_github.com.version'
|
||||||
|
|
Loading…
Reference in a new issue