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