Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

use bool filter on bare variable to address Ansible 2.8 deprecation warning #40

Merged
merged 1 commit into from
Oct 17, 2019
Merged

use bool filter on bare variable to address Ansible 2.8 deprecation warning #40

merged 1 commit into from
Oct 17, 2019

Conversation

deefour
Copy link
Contributor

@deefour deefour commented Oct 17, 2019

Ansible 2.8 now displays a deprecation warning over the use of bare variables in conditionals. I'm not quite sure why the porting guide doesn't reflect it yet, but here is the pull request that adds documentation for the warning.

In short,

when: mysql_hardening_enabled

needs to be

when: mysql_hardening_enabled | bool

@rndmh3ro rndmh3ro merged commit 33a85b2 into dev-sec:master Oct 17, 2019
@rndmh3ro
Copy link
Member

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants