Skip to content

Commit

Permalink
Fixed issues with boolean variables set as strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Dyson committed Jun 9, 2016
1 parent d64c643 commit 0db1bd4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 31 deletions.
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ script:
&& (echo "Idempotence test: Passed" && exit 0)
|| (echo "Idempotence test: Failed" && exit 1)
- 'sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm redis-server --version'
- 'sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm cat /etc/redis/redis.conf'
- 'sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm cat /etc/redis.conf'
- 'sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm ls /var/log/redis'
- 'sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm cat /var/log/redis/redis-server.log'
- 'sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm cat /var/log/redis/redis.log'
- 'sudo docker stop "$(cat ${container_id})"'

notifications:
Expand Down
16 changes: 8 additions & 8 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ redis_service_enabled: yes
redis_conf_template: 'redis.conf.j2'
redis_packages:
redis_daemonize: 'yes'
redis_password: 'false'
redis_password: false
redis_port: '6379'
redis_bind: '127.0.0.1'
redis_pidfile: '/var/run/redis/{{ redis_service_name }}.pid'
redis_logfile: '/var/log/redis/redis-server.log'
redis_logfile: '/var/log/redis/{{ redis_service_name }}.log'
redis_loglevel: 'notice'
redis_tcp_backlog: '511'
redis_unixsocket: 'false'
redis_unixsocket: false
redis_timeout: '0'
redis_tcp_keepalive: '0'
redis_syslog_enabled: 'no'
redis_syslog_ident: 'redis_{{ redis_port }}'
redis_syslog_facility: 'USER'
redis_syslog_ident: 'redis'
redis_syslog_facility: 'local0'
redis_databases: '16'
redis_save:
- '900 1'
Expand All @@ -37,16 +37,16 @@ redis_rdbcompression: 'yes'
redis_rdbchecksum: 'yes'
redis_dbfilename: 'dump.rdb'
redis_dir: '/var/lib/redis'
redis_slaveof: 'false'
redis_slaveof: false
redis_slave_serve_stale_data: 'yes'
redis_slave_read_only: 'yes'
redis_repl_diskless_sync: 'no'
redis_repl_diskless_sync_delay: '5'
redis_repl_ping_slave_period: '10'
redis_repl_timeout: '60'
redis_repl_disable_tcp_nodelay: 'no'
redis_repl_backlog_size: 'false'
redis_repl_backlog_ttl: 'false'
redis_repl_backlog_size: false
redis_repl_backlog_ttl: false
redis_slave_priority: '100'
redis_min_slaves_to_write: '0'
redis_min_slaves_max_lag: '10'
Expand Down
16 changes: 8 additions & 8 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ redis_service_enabled: yes
redis_conf_template: 'redis.conf.j2'
redis_packages:
redis_daemonize: 'yes'
redis_password: 'false'
redis_password: false
redis_port: '6379'
redis_bind: '127.0.0.1'
redis_pidfile: '/var/run/redis/{{ redis_service_name }}.pid'
redis_logfile: '/var/log/redis/redis-server.log'
redis_logfile: '/var/log/redis/{{ redis_service_name }}.log'
redis_loglevel: 'notice'
redis_tcp_backlog: '511'
redis_unixsocket: 'false'
redis_unixsocket: false
redis_timeout: '0'
redis_tcp_keepalive: '0'
redis_syslog_enabled: 'no'
redis_syslog_ident: 'redis_{{ redis_port }}'
redis_syslog_facility: 'USER'
redis_syslog_ident: 'redis'
redis_syslog_facility: 'local0'
redis_databases: '16'
redis_save:
- '900 1'
Expand All @@ -43,16 +43,16 @@ redis_rdbcompression: 'yes'
redis_rdbchecksum: 'yes'
redis_dbfilename: 'dump.rdb'
redis_dir: '/var/lib/redis'
redis_slaveof: 'false'
redis_slaveof: false
redis_slave_serve_stale_data: 'yes'
redis_slave_read_only: 'yes'
redis_repl_diskless_sync: 'no'
redis_repl_diskless_sync_delay: '5'
redis_repl_ping_slave_period: '10'
redis_repl_timeout: '60'
redis_repl_disable_tcp_nodelay: 'no'
redis_repl_backlog_size: 'false'
redis_repl_backlog_ttl: 'false'
redis_repl_backlog_size: false
redis_repl_backlog_ttl: false
redis_slave_priority: '100'
redis_min_slaves_to_write: '0'
redis_min_slaves_max_lag: '10'
Expand Down
20 changes: 10 additions & 10 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
reload: yes
ignoreerrors: yes

#- name: 'Redis | Configure Redis conf file.'
# become: yes
# template:
# src: '{{ redis_conf_template }}'
# dest: '{{ redis_conf_file }}'
# owner: 'root'
# group: 'root'
# mode: '0644'
# notify: 'restart redis'
# when: '{{ redis_conf_template | default(None) != None }}'
- name: 'Redis | Configure Redis conf file.'
become: yes
template:
src: '{{ redis_conf_template }}'
dest: '{{ redis_conf_file }}'
owner: 'root'
group: 'root'
mode: '0644'
notify: 'restart redis'
when: '{{ redis_conf_template | default(None) != None }}'

0 comments on commit 0db1bd4

Please sign in to comment.