Jon (et al), I've created this playbook to distill my problem, available 
here:

https://drive.google.com/file/d/0B81YECbGAyfWaW5rbVRQNlpQT2c/view?usp=sharing

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 :-)

My output:

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 
  

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3e5cdbd9-a9bf-4d11-828c-f73fe9aa7bb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to