From 20803ff535abeece52040d6af0bb9858aaf1db59 Mon Sep 17 00:00:00 2001 From: L3D Date: Fri, 19 May 2023 15:57:59 +0200 Subject: [PATCH] rename some internal variables --- tasks/versioncheck.yml | 10 +++++----- vars/main.yml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tasks/versioncheck.yml b/tasks/versioncheck.yml index dd22a1a..1af569d 100644 --- a/tasks/versioncheck.yml +++ b/tasks/versioncheck.yml @@ -13,15 +13,15 @@ - name: Check playbook version become: true ansible.builtin.slurp: - src: "/etc/.ansible-version/{{ playbook_version_path }}" - register: playbook_version + src: "/etc/.ansible-version/{{ ntp__playbook_version_path }}" + register: ntp__playbook_version when: submodules_versioncheck | bool ignore_errors: true failed_when: false - name: Print remote role version ansible.builtin.debug: - msg: "Remote role version: {{ playbook_version.content | default('Y3VycmVudGx5IG5vdCBkZXBsb3llZAo=') | b64decode | string }}" + msg: "Remote role version: {{ ntp__playbook_version.content | default('Y3VycmVudGx5IG5vdCBkZXBsb3llZAo=') | b64decode | string }}" when: submodules_versioncheck | bool - name: Print locale role version @@ -33,13 +33,13 @@ ansible.builtin.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 + - ntp__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 ansible.builtin.copy: content: "{{ playbook_version_number }}" - dest: "/etc/.ansible-version/{{ playbook_version_path }}" + dest: "/etc/.ansible-version/{{ ntp__playbook_version_path }}" mode: '0644' when: submodules_versioncheck | bool tags: skip_ansible_lint_template-instead-of-copy diff --git a/vars/main.yml b/vars/main.yml index 52ef6d0..4ef79c9 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,6 +1,6 @@ --- playbook_version_number: 2057 -playbook_version_path: 'role-ntp_chaos-bodensee_github.com.version' +ntp__playbook_version_path: 'role-ntp_chaos-bodensee_github.com.version' ntp__vars: files: