Code Monkey home page Code Monkey logo

Comments (2)

DavidWittman avatar DavidWittman commented on September 7, 2024

@stephansarver can you provide the full playbook which you're using? Wrap it in triple backticks (playbook) for syntax highlighting.

Also, you should not be manually editing any variables within this role; they should all be set within your playbook.

from ansible-redis.

stephansarver avatar stephansarver commented on September 7, 2024

OK so I don't know what is different butt it must be a PEBKAC issue. Since I blew away the original stuff I could not get working here is the test files that do work:

main.yml
`
`
`
---
- hosts: redis-master
  user: vagrant
  sudo: yes
  vars_files:
    - vars/main.yml
  roles:
    - DavidWittman.redis
# The following functionality seems to be missing to add this property change!
#  tasks:
    # Add the masterauth configuration so when this master fails and comes back up it can be turned into a slave automatically.
#    - lineinfile: dest=/etc/redis/6379.conf regexp="^# masterauth <master-password>" line="masterauth {{ master_auth_pass }}"
    # Restart the service after the configuration changes.
#    - service: name=redis_6379 state=restarted

`
`
`

~~~vars/main.yml~~~  
`
`
`
---
#https://github.com/DavidWittman/ansible-redis
redis_version: 3.0.7
redis_password:  "{{ master_auth_pass }}"
redis_logfile: '/var/log/redis.log'
redis_sentinel_logfile: '/var/log/redis_sentinel.log'
redis_sentinel_monitors:
- name: "{{ master_name }}"
  host: "{{ master_addr }}"
  port: "{{ master_port }}"
  quorum: 2
  auth_pass: "{{ master_auth_pass }}"
  down_after_milliseconds: 30000
  parallel_syncs: 1
  failover_timeout: 180000
  notification_script: false
  client_reconfig_script: false

`
`
`

~~~inventorry~~~  

`
`
`
[redis-master]
33.33.33.21 master_name=master1 master_addr=33.33.33.21 master_port=6379 master_auth_pass=somelongpassword

`
`
`

This issue should be closed!

from ansible-redis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.