Commit 7e5498d
Fix undefined ansible_user_dir var in inject success flag task
#3036
Separate deployment from testing. As it also moves
`inject success flag` task to post-deployment playbook.
The play where `inject success flag` task runs, gather_facts
is set to false. ansible_user_dir is coming undefined.
In order to fix that, we are adding a task to collect
ansible_user_dir fact. This will make sure ansible_user_dir
exists.
Note: This code is generated by Gemini 2.5 Flash with following
prompt
```
what gather_facts I can run to collect ansible_user_dir
```
Generated-By: Gemini 2.5 Flash
Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>1 parent c605465 commit 7e5498d
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
| |||
0 commit comments