Same thing happens: Then the (previously undefined) variable "variable3" gets set using set_fact within a role, subsequent calls to that role is unable to pass another value for that var. Hopefully I'm doing something wrong, I really need this to work :-)
PLAY [test thing] **************************************************************
TASK [myrole : print the thing] ************************************************
ok: [localhost] => {
"msg": "Print the var var1"
}
TASK [myrole : print the other thing (should skip)] ****************************
skipping: [localhost]
TASK [myrole : set the other var] **********************************************
ok: [localhost]
TASK [myrole : print the third thing] ******************************************
ok: [localhost] => {
"msg": "Print the third var var3"
}
PLAY [test thing] **************************************************************
TASK [myrole : print the thing] ************************************************
ok: [localhost] => {
"msg": "Print the var var1"
}
TASK [myrole : print the other thing (should skip)] ****************************
skipping: [localhost]
TASK [myrole : set the other var] **********************************************
ok: [localhost]
TASK [myrole : print the third thing] ******************************************
ok: [localhost] => {
"msg": "Print the third var var3"
}
PLAY [test thing] **************************************************************
TASK [myrole : print the thing] ************************************************
ok: [localhost] => {
"msg": "Print the var var1"
}
TASK [myrole : print the other thing (should skip)] ****************************
skipping: [localhost]
TASK [myrole : set the other var] **********************************************
ok: [localhost]
TASK [myrole : print the third thing] ******************************************
ok: [localhost] => {
"msg": "Print the third var var3"
}
PLAY RECAP *********************************************************************
localhost : ok=9 changed=0 unreachable=0 failed=0