--- - name: Install anyenv git: repo: https://github.com/riywo/anyenv.git dest: ~/.anyenv - name: Ensure envs directory exists file: path: ~/.anyenv/envs/ state: directory - name: Install pyenv shell: ~/.anyenv/bin/anyenv install pyenv args: creates: ~/.anyenv/envs/pyenv - name: Install rbenv shell: ~/.anyenv/bin/anyenv install rbenv args: creates: ~/.anyenv/envs/rbenv