Best way to extend/configure roles from Ansible-Galaxy

I really like how easy it is to import roles from Ansible-Galaxy.

I have installed a redis role. I don’t want to check this remote role into my repo and have gitignored it (I install it with requirements.yml).

What is the best practices way to then configure redis? Should I make my own role called redis-config which then modifies the redis.conf file?

I am thinking the best way to abstract this, without creating a new role, is basically do something like this:

  • hosts: my_server
    vars:
    redis_bind_interface: 0.0.0.0
    roles:
  • common
  • zookeeper
  • geerlingguy.redis
  • cassandra
    become: true