diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index afaf1003f6d27846050c440f184d2f52b5c9b0e7..13a5e366416d84d76fbd6bec0f1848190ce5e3ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,7 +34,7 @@ repos: - README.md # https://github.com/ansible/ansible-lint/releases - repo: https://github.com/ansible/ansible-lint.git - rev: v25.1.2 + rev: v25.1.3 hooks: - id: ansible-lint name: Ansible Lint diff --git a/tasks/instance_present.yml b/tasks/instance_present.yml index 926bd850116e1895a5de660c9be9ceb34f3f20d4..720be22b088f9dd5633f2df51c9d493f033dae0b 100644 --- a/tasks/instance_present.yml +++ b/tasks/instance_present.yml @@ -134,7 +134,7 @@ owner: valkey group: valkey mode: "0600" - # diff: false + diff: false register: valkey_instance_config_templated - name: Debug valkey_instance_config_templated diff --git a/templates/valkey.conf.j2 b/templates/valkey.conf.j2 index b5a4ebad94c34b9d0f4ae0e4e5f8470ba0e49529..c8ce65ce7f323da6ecc729ba5a66ea63a8f8f587 100644 --- a/templates/valkey.conf.j2 +++ b/templates/valkey.conf.j2 @@ -10,7 +10,7 @@ {# Config loop, turn the dictionary into a key, value list #} {% for valkey_var_pair in valkey_instance.config | ansible.builtin.dict2items %} {# If the value is a list repeat the key for each list item #} -{% if valkey_var_pair | ansible.builtin.type_debug == "list" %} +{% if valkey_var_pair.value | ansible.builtin.type_debug == "list" %} {% for valkey_var_pair_value in valkey_var_pair.value %} {# If the value is a boolean use yes or no as values #} {% if valkey_var_pair.value | ansible.builtin.type_debug == "bool" %}