You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
2.5 KiB
91 lines
2.5 KiB
---
|
|
|
|
- name: Manage Redis server
|
|
collections: [ 'debops.debops', 'debops.roles01',
|
|
'debops.roles02', 'debops.roles03' ]
|
|
hosts: [ 'debian10' ]
|
|
become: True
|
|
|
|
environment: '{{ inventory__environment | d({})
|
|
| combine(inventory__group_environment | d({}))
|
|
| combine(inventory__host_environment | d({})) }}'
|
|
|
|
vars:
|
|
redis_server__auth_password:
|
|
redis_server__configuration:
|
|
|
|
- name: 'main'
|
|
options:
|
|
|
|
# - name: 'save'
|
|
# value: ''
|
|
# dynamic: True
|
|
|
|
- name: 'protected-mode'
|
|
value: 'no'
|
|
dynamic: False
|
|
|
|
- name: 'stop-writes-on-bgsave-error'
|
|
value: 'no'
|
|
dynamic: False
|
|
|
|
- name: 'save'
|
|
value:
|
|
- name: '900 1'
|
|
state: absent
|
|
- name: '300 10'
|
|
state: absent
|
|
- name: '60 10000'
|
|
state: absent
|
|
dynamic: False
|
|
|
|
pre_tasks:
|
|
|
|
- name: Prepare sysfs environment
|
|
import_role:
|
|
name: 'sysfs'
|
|
tasks_from: 'main_env'
|
|
tags: [ 'role::sysfs', 'role::secret' ]
|
|
|
|
- name: Prepare redis_server environment
|
|
import_role:
|
|
name: 'redis_server'
|
|
tasks_from: 'main_env'
|
|
tags: [ 'role::redis_server', 'role::ferm' ]
|
|
|
|
roles:
|
|
|
|
- role: secret
|
|
tags: [ 'role::secret', 'role::sysfs' ]
|
|
secret__directories:
|
|
- '{{ sysfs__secret__directories | d([]) }}'
|
|
|
|
- role: apt_preferences
|
|
tags: [ 'role::apt_preferences', 'skip::apt_preferences' ]
|
|
apt_preferences__dependent_list:
|
|
- '{{ redis_server__apt_preferences__dependent_list }}'
|
|
|
|
- role: etc_services
|
|
tags: [ 'role::etc_services', 'skip::etc_services' ]
|
|
etc_services__dependent_list:
|
|
- '{{ redis_server__etc_services__dependent_list }}'
|
|
|
|
- role: sysctl
|
|
tags: [ 'role::sysctl', 'skip::sysctl' ]
|
|
sysctl__dependent_parameters:
|
|
- '{{ redis_server__sysctl__dependent_parameters }}'
|
|
|
|
- role: sysfs
|
|
tags: [ 'role::sysfs', 'skip::sysfs' ]
|
|
sysfs__dependent_attributes:
|
|
- '{{ redis_server__sysfs__dependent_attributes }}'
|
|
|
|
- role: python
|
|
tags: [ 'role::python', 'skip::python', 'role::redis_server' ]
|
|
python__dependent_packages3:
|
|
- '{{ redis_server__python__dependent_packages3 }}'
|
|
python__dependent_packages2:
|
|
- '{{ redis_server__python__dependent_packages2 }}'
|
|
|
|
- role: redis_server
|
|
tags: [ 'role::redis_server', 'skip::redis_server' ]
|