zzet / rbenv

Ansible role for installing rbenv.
https://galaxy.ansible.com/zzet/rbenv/
188 stars 112 forks source link

recurse option requires state to be 'directory' #68

Closed itsNikolay closed 8 years ago

itsNikolay commented 8 years ago

Issue: By running a provision command, I get the following exception:

TASK [ansible-deployer : add rigths to rbenv] **********************************
fatal: [mainserver]: FAILED! => {"changed": false, "failed": true, "msg": "recurse option requires state to be 'directory'", "path": "/usr/local/rbenv", "state": "absent"}

Environment: Server: Ubuntu 16.10

❯ ansible --version
ansible 2.0.1.0
❯ ansible-galaxy info zzet.rbenv
Role: zzet.rbenv
        description: rbenv
        active: True
        commit: 3cb88f156abcb082471a6a60c1bb713b892e09fb
        commit_message: Darwin doesn't have a root group either. (#66)
        commit_url: https://github.com/zzet/ansible-rbenv-role/commit/3cb88f156abcb082471a6a60c1bb713b892e09fb

Solution: Create dir /usr/local/rbenv on the server manually