linux-system-roles / storage

Ansible role for linux storage management
https://linux-system-roles.github.io/storage/
MIT License
101 stars 59 forks source link

use block instead of end_play #302

Closed richm closed 1 year ago

richm commented 1 year ago

Do not use end_play with the conditional when which uses variables for the condition. The problem is that end_play is executed in a different scope where the variables are not defined, even when using set_fact. The fix is to instead use a block and a when.