Add playbook creation for the automation

Change-Id: I2c03cc87a37cb924df3b205f46a2ac6bfb24e543
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
Gael Chamoulaud 2019-09-30 14:39:38 +02:00
parent 28a3dbbb0d
commit 008425ffb6
2 changed files with 20 additions and 3 deletions

View File

@ -17,6 +17,5 @@
# All variables intended for modification should place placed in this file.
# All variables within this role should have a prefix of "{{ role_name }}"
{{ role_name }}_debug: false
# All variables within this role should have a prefix of "{{ role_name | replace('-', '_'}}"
{{ role_name | replace('-', '_') }}_debug: false

View File

@ -79,6 +79,24 @@
{{ items | to_nice_yaml(indent=2, width=1337) }}
dest: zuul.d/molecule.yaml
- name: Create the playbook
copy:
content: |
---
- hosts: undercloud
vars:
metadata:
name: Validation's name
description: >-
Write a description of your validations
groups:
- group1
- group2
{{ role_name | replace('-', '_') }}_debug: false
roles:
- {{ role_name }}
dest: "playbooks/{{ role_name }}.yaml"
- name: Create role documentation
copy:
content: |