Ensure we get a prefix for validation roles

Since we're moving everything in /usr/share/ansible, having such a
prefix for the roles will ensure there's no overlap, and will make
things easier to list/understand.

Change-Id: I998332f8ebe2f6253678100261257aedb59792ce
This commit is contained in:
Cédric Jeanneret 2020-09-11 13:24:22 +02:00 committed by Cédric Jeanneret (Tengu)
parent 90b919c935
commit f096c1ac0c
1 changed files with 8 additions and 8 deletions

View File

@ -45,9 +45,9 @@
ansible-galaxy init
--role-skeleton=_skeleton_role_
--init-path=roles/
{{ _role_name }}
validation_{{ _role_name }}
args:
creates: "roles/{{ _role_name }}"
creates: "roles/validation_{{ _role_name }}"
- name: Read zuul molecule file
slurp:
@ -86,10 +86,10 @@
"name": new_job_name,
"parent": "tripleo-validations-centos-8-base",
"files": [
"^roles/" ~ _role_name ~ "/.*"
"^roles/validation_" ~ _role_name ~ "/.*"
],
"vars": {
"tripleo_validations_role_name": _role_name
"tripleo_validations_role_name": "validation_" ~ _role_name
}
}
%}
@ -130,9 +130,9 @@
- post-overcloud-converge
- pre-ceph
- post-ceph
{{ _role_name }}_debug: false
validation_{{ _role_name }}_debug: false
roles:
- {{ _role_name }}
- validation_{{ _role_name }}
dest: "playbooks/{{ dashed_role_name }}.yaml"
- name: Create role documentation
@ -144,5 +144,5 @@
{{ '=' * (opening | length) }}
.. ansibleautoplugin::
:role: roles/{{ _role_name }}
dest: "doc/source/roles/role-{{ _role_name }}.rst"
:role: roles/validation_{{ _role_name }}
dest: "doc/source/roles/role-validation_{{ _role_name }}.rst"