The tmpdir presence task creates ~/.rbenv, which prevents subsequent tasks from cloning to ~/.rbenv. If it's simply removed, the cloning task works fine. As well, since the shell is not refreshed between tasks, ansible can't find the rbenv bin without an explicit path.
The tmpdir presence task creates ~/.rbenv, which prevents subsequent tasks from cloning to ~/.rbenv. If it's simply removed, the cloning task works fine. As well, since the shell is not refreshed between tasks, ansible can't find the rbenv bin without an explicit path.