Fix role addition skeleton

This was messing up the role name in the templates, e.g
ansible-playbook -i localhost, role-addition.yml -e role_name=tripleo_foo

Generates roles/tripleo_foo/defaults/main.yml with:
tripleo_tripleo_foo_debug: "..."

Also _skeleton_role_/vars/main.yml contained jinja2 but wasn't being processed.

Change-Id: I59cfbf72add30b7d8de2e45262aaa7188ba1cf5d
This commit is contained in:
Oliver Walsh 2020-08-19 15:50:33 +01:00
parent e2716db951
commit d0ed5b80c3
2 changed files with 4 additions and 4 deletions

View File

@ -17,6 +17,6 @@
# All variables intended for modification should be placed in this file.
# All variables within this role should have a prefix of "tripleo_{{ role_name | replace('tripleo-', '') | replace('-', '_') }}"
tripleo_{{ role_name | replace('tripleo-', '') | replace('-', '_') }}_debug: {% raw %}"{{ (ansible_verbosity | int) >= 2 | bool }}"{% endraw %}
tripleo_{{ role_name | replace('tripleo-', '') | replace('-', '_') }}_hide_sensitive_logs: true
# All variables within this role should have a prefix of "tripleo_{{ role_name | replace('tripleo_', '') }}"
tripleo_{{ role_name | replace('tripleo_', '') }}_debug: {% raw %}"{{ (ansible_verbosity | int) >= 2 | bool }}"{% endraw %}
tripleo_{{ role_name | replace('tripleo_', '') }}_hide_sensitive_logs: true

View File

@ -19,4 +19,4 @@
# vars, items within this path are considered part of the role and not
# intended to be modified.
# All variables within this role should have a prefix of "tripleo_{{ role_name | replace('tripleo-', '') | replace('-', '_') }}"
# All variables within this role should have a prefix of "tripleo_{{ role_name | replace('tripleo_', '') }}"