mirror of
https://github.com/roles-ansible/ansible_role_base.git
synced 2024-08-16 14:29:50 +02:00
Fix ansible deprecation error
This commit is contained in:
parent
02a7fa60df
commit
f0544c7797
1 changed files with 5 additions and 5 deletions
|
@ -5,20 +5,20 @@
|
||||||
path: '/etc/ansible-version'
|
path: '/etc/ansible-version'
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when: submodules_versioncheck
|
when: submodules_versioncheck|bool
|
||||||
|
|
||||||
- name: check playbook version
|
- name: check playbook version
|
||||||
become: true
|
become: true
|
||||||
slurp:
|
slurp:
|
||||||
src: "{{ playbook_version_path }}"
|
src: "{{ playbook_version_path }}"
|
||||||
register: playbook_version
|
register: playbook_version
|
||||||
when: submodules_versioncheck
|
when: submodules_versioncheck|bool
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: Print version
|
- name: Print version
|
||||||
debug:
|
debug:
|
||||||
msg: "Remote playbook version: '{{ playbook_version.content | default('Y3VycmVudGx5IG5vdCBkZXBsb3llZAo=') | b64decode | string }}'. Local playbook version: '{{ playbook_version_number|string }}'."
|
msg: "Remote playbook version: '{{ playbook_version.content | default('Y3VycmVudGx5IG5vdCBkZXBsb3llZAo=') | b64decode | string }}'. Local playbook version: '{{ playbook_version_number|string }}'."
|
||||||
when: submodules_versioncheck
|
when: submodules_versioncheck|bool
|
||||||
|
|
||||||
- name: Check if your version is outdated
|
- name: Check if your version is outdated
|
||||||
fail:
|
fail:
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
copy:
|
copy:
|
||||||
content: "{{ playbook_version_number }}"
|
content: "{{ playbook_version_number }}"
|
||||||
dest: "{{ playbook_version_path }}"
|
dest: "{{ playbook_version_path }}"
|
||||||
when: submodules_versioncheck
|
when: submodules_versioncheck|bool
|
||||||
|
|
||||||
- name: Install common base packages [Debian]
|
- name: Install common base packages [Debian]
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -113,4 +113,4 @@
|
||||||
name: "*"
|
name: "*"
|
||||||
state: latest
|
state: latest
|
||||||
when:
|
when:
|
||||||
- upgrade_packages_to_latest_version
|
- upgrade_packages_to_latest_version|bool
|
||||||
|
|
Loading…
Reference in a new issue