1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_linux_desktop_setup.git synced 2024-09-14 19:54:51 +02:00

Update submodules

This commit is contained in:
Lilian Roller 2019-05-29 11:01:54 +02:00
parent 5efff12e0f
commit c819096dd0
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
9 changed files with 126 additions and 6 deletions

@ -1 +1 @@
Subproject commit 0eb12deab6559ff2fe8c026cb3e1874b49dddedc Subproject commit a0191eb89d8069b8156d984b1a06b8474bac71b3

@ -1 +1 @@
Subproject commit 47a87b06425ed0f055388a4426d6fb3684b0df7d Subproject commit f7a14c1c25932ef86e73f7bd6fc9525ddf259a9d

@ -1 +1 @@
Subproject commit 4f3004fc56720fdd71d105e6c9acd67a53477632 Subproject commit ccb36224fa6d88b72d0c24d4423d7a24a27c920e

@ -1 +1 @@
Subproject commit 612f3326b63959f95e71daffe201b188b3f5b5a7 Subproject commit 3d0b74cb4b33e53fd9c06241adf419e3577f884d

View file

@ -0,0 +1,40 @@
---
- name: Create directory for versionscheck
become: true
file:
path: '/etc/ansible-version'
state: directory
mode: 0755
when: submodules_versioncheck|bool
- name: check playbook version
become: true
slurp:
src: "{{ playbook_version_path }}"
register: playbook_version
when: submodules_versioncheck|bool
ignore_errors: yes
failed_when: false
- name: Print remote role version
debug:
msg: "Remote role version: {{ playbook_version.content | default('Y3VycmVudGx5IG5vdCBkZXBsb3llZAo=') | b64decode | string }}"
when: submodules_versioncheck|bool
- name: Print locale role version
debug:
msg: "Local role version: '{{ playbook_version_number|string }}'."
when: submodules_versioncheck|bool
- name: Check if your version is outdated
fail:
msg: "Your ansible module has the version '{{ playbook_version_number }}' and is outdated. You need to update it!"
when:
- playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck|bool
- name: write new version to remote disk
become: true
copy:
content: "{{ playbook_version_number }}"
dest: "{{ playbook_version_path }}"
when: submodules_versioncheck|bool

@ -1 +1 @@
Subproject commit 3fa537ce6a10e428139a003f1b2c743401ebade4 Subproject commit e260f158c1f0b7ffb70b0ff083d9d18c0ad4f110

View file

@ -0,0 +1,40 @@
---
- name: Create directory for versionscheck
become: true
file:
path: '/etc/ansible-version'
state: directory
mode: 0755
when: submodules_versioncheck|bool
- name: check playbook version
become: true
slurp:
src: "{{ playbook_version_path }}"
register: playbook_version
when: submodules_versioncheck|bool
ignore_errors: yes
failed_when: false
- name: Print remote role version
debug:
msg: "Remote role version: {{ playbook_version.content | default('Y3VycmVudGx5IG5vdCBkZXBsb3llZAo=') | b64decode | string }}"
when: submodules_versioncheck|bool
- name: Print locale role version
debug:
msg: "Local role version: '{{ playbook_version_number|string }}'."
when: submodules_versioncheck|bool
- name: Check if your version is outdated
fail:
msg: "Your ansible module has the version '{{ playbook_version_number }}' and is outdated. You need to update it!"
when:
- playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck|bool
- name: write new version to remote disk
become: true
copy:
content: "{{ playbook_version_number }}"
dest: "{{ playbook_version_path }}"
when: submodules_versioncheck|bool

@ -1 +1 @@
Subproject commit f632377d37cc2d3b37852510532a4e9a31df57a5 Subproject commit ec50db721aa681281212d0d70d948d30eebfb33d

View file

@ -0,0 +1,40 @@
---
- name: Create directory for versionscheck
become: true
file:
path: '/etc/ansible-version'
state: directory
mode: 0755
when: submodules_versioncheck|bool
- name: check playbook version
become: true
slurp:
src: "{{ playbook_version_path }}"
register: playbook_version
when: submodules_versioncheck|bool
ignore_errors: yes
failed_when: false
- name: Print remote role version
debug:
msg: "Remote role version: {{ playbook_version.content | default('Y3VycmVudGx5IG5vdCBkZXBsb3llZAo=') | b64decode | string }}"
when: submodules_versioncheck|bool
- name: Print locale role version
debug:
msg: "Local role version: '{{ playbook_version_number|string }}'."
when: submodules_versioncheck|bool
- name: Check if your version is outdated
fail:
msg: "Your ansible module has the version '{{ playbook_version_number }}' and is outdated. You need to update it!"
when:
- playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck|bool
- name: write new version to remote disk
become: true
copy:
content: "{{ playbook_version_number }}"
dest: "{{ playbook_version_path }}"
when: submodules_versioncheck|bool