From e794c0e7e57a667366e793866dbbbcf49e547226 Mon Sep 17 00:00:00 2001 From: Lilian Roller Date: Fri, 17 May 2019 15:10:50 +0200 Subject: [PATCH] Update for lint fixes and deprecation --- tasks/main.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 0a29465..af914b6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,33 +5,33 @@ 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: msg: "Your current ansible module has the version '{{ playbook_version_number }}' and is outdated. Please update it at least to version '{{ playbook_version.content | default('Y3VycmVudGx5IG5vdCBkZXBsb3llZAo=') | b64decode }}'!" when: - - playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck + - 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 + when: submodules_versioncheck|bool - name: install the latest libselinux-python package become: yes @@ -48,7 +48,7 @@ state: latest when: - ansible_os_family != 'RedHat' - - install_keychain + - install_keychain|bool - name: install keychain on centos become: yes @@ -59,7 +59,7 @@ state: present when: - ansible_os_family == 'RedHat' - - install_keychain + - install_keychain|bool - name: Create a global bashrc configuration become: yes