Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No idempotency on "install ruby versions for system" #126

Open
marcinhlybin opened this issue Oct 8, 2018 · 1 comment
Open

No idempotency on "install ruby versions for system" #126

marcinhlybin opened this issue Oct 8, 2018 · 1 comment

Comments

@marcinhlybin
Copy link

A role does not have idempotency which is essential feature of Ansible.
Following task always shows changed:

TASK [zzet.rbenv : install ruby versions for system] *********************************************************************************************************
changed: [dev-02] => (item={u'version': u'2.5.1'})

Role variables:

    rbenv:
      env: system
      version: v1.1.1
      default_ruby: 2.5.1
      rubies:
        - version: 2.5.1
@ramonrails
Copy link

TASK [zzet.rbenv : check ruby versions installed for system] ********************************************************************************************************
ok: [staging] => (item={'version': '2.7.1', 'env': {'RUBY_CONFIGURE_OPTS': '--enable-shared'}})

TASK [zzet.rbenv : install ruby versions for system] ****************************************************************************************************************
changed: [staging] => (item={'version': '2.7.1', 'env': {'RUBY_CONFIGURE_OPTS': '--enable-shared'}})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants