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

Role idempotency, fixed deprecations, flush_handlers warning, updated checksums #202

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

marcobellaccini
Copy link

@marcobellaccini marcobellaccini commented Jan 15, 2019

  • Fixed some deprecations (with_items, using tests as filters)

  • Updated checksums

  • Idempotent implementation for log file creation tasks (avoid using touch)

  • Idempotent implementation for config file tasks (make Ansible check for configuration changes in a reference configuration file instead of the real one - which is dynamically rewritten by redis). This is similar to Don't rewrite volatile sentinel config file #172 .

  • Removed flush_handlers: it was used with when conditionals but resulted in this warning:

    [WARNING]: flush_handlers task does not support when conditional

    Implemented another workaround to prevent services from starting and then re-starting.

  • Changed minimum Ansible version to 2.5.0 (older versions are incompatible with loop - and with_items is deprecated)

@adborden
Copy link
Contributor

Hello, I'm interested in seeing this merged. It's been here for over a year. Is there anyway I can help move this along?

@@ -44,7 +37,7 @@
home: "{{ redis_install_dir }}"
shell: /bin/false
system: yes
when: user_exists|failed
state: present
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a risk here of setting the shell to /bin/false of a login user, if for any reason redis_user is set to anything else but redis

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

Successfully merging this pull request may close these issues.

4 participants