fix broken ceph-fetch-keys role

set fetch_directory variable in default/main.yml instead of using the
defaults jinja filter in tasks/main.yml.

Fixes: #6072

Signed-off-by: Karl-Heinz Preuß <karl-heinz.preuss@cms.hu-berlin.de>
pull/6138/head
Karl-Heinz Preuß 2020-11-26 10:48:49 +01:00 committed by Guillaume Abrioux
parent 5e9444fa5c
commit 6ce34ef59f
3 changed files with 13 additions and 2 deletions

View File

@ -7,7 +7,7 @@ set -euo pipefail
############# #############
basedir=$(dirname "$0") basedir=$(dirname "$0")
do_not_generate="ceph-common$|ceph-container-common$" # pipe separated list of roles we don't want to generate sample file, MUST end with '$', e.g: 'foo$|bar$' do_not_generate="(ceph-common|ceph-container-common|ceph-fetch-keys)$" # pipe separated list of roles we don't want to generate sample file, MUST end with '$', e.g: 'foo$|bar$'
############# #############

View File

@ -0,0 +1,11 @@
---
# Variables here are applicable to all host groups NOT roles
# This sample file generated by generate_group_vars_sample.sh
# Dummy variable to avoid error because ansible does not recognize the
# file as a good configuration file when no variable in it.
dummy:
fetch_directory: fetch/

View File

@ -6,7 +6,7 @@
- name: create a local fetch directory if it does not exist - name: create a local fetch directory if it does not exist
file: file:
path: "{{ fetch_directory | default('fetch/') }}" path: "{{ fetch_directory }}"
state: directory state: directory
delegate_to: localhost delegate_to: localhost
become: false become: false