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'
|
||||
state: directory
|
||||
mode: 0755
|
||||
when: submodules_versioncheck
|
||||
when: submodules_versioncheck|bool
|
||||
|
||||
- name: check playbook version
|
||||
become: true
|
||||
slurp:
|
||||
src: "{{ playbook_version_path }}"
|
||||
register: playbook_version
|
||||
when: submodules_versioncheck
|
||||
when: submodules_versioncheck|bool
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Print version
|
||||
debug:
|
||||
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
|
||||
fail:
|
||||
|
@ -31,7 +31,7 @@
|
|||
copy:
|
||||
content: "{{ playbook_version_number }}"
|
||||
dest: "{{ playbook_version_path }}"
|
||||
when: submodules_versioncheck
|
||||
when: submodules_versioncheck|bool
|
||||
|
||||
- name: Install common base packages [Debian]
|
||||
become: yes
|
||||
|
@ -113,4 +113,4 @@
|
|||
name: "*"
|
||||
state: latest
|
||||
when:
|
||||
- upgrade_packages_to_latest_version
|
||||
- upgrade_packages_to_latest_version|bool
|
||||
|
|
Loading…
Reference in a new issue