From ffc184ff717cbab5870d7d94923177710bd8c6c1 Mon Sep 17 00:00:00 2001 From: Rick Elrod Date: Wed, 21 Nov 2018 02:19:03 +0000 Subject: [PATCH] make this use template instead Signed-off-by: Rick Elrod --- roles/undercloud/tasks/main.yml | 8 ++++---- .../templates/{ => templates}/cinder-dellps-config.yaml | 0 .../{ => templates}/environment-rhel-registration.yaml | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename roles/undercloud/templates/{ => templates}/cinder-dellps-config.yaml (100%) rename roles/undercloud/templates/{ => templates}/environment-rhel-registration.yaml (100%) diff --git a/roles/undercloud/tasks/main.yml b/roles/undercloud/tasks/main.yml index 3dc5ca1b73..26550b841a 100644 --- a/roles/undercloud/tasks/main.yml +++ b/roles/undercloud/tasks/main.yml @@ -40,11 +40,11 @@ - config - undercloud -- name: Copy files to ~/stack/templates/ - copy: src={{item}} dest=/home/stack/templates/{{item}} owner=stack group=stack mode=0644 +- name: Copy templates to ~/stack/ + template: src={{item}} dest=/home/stack/{{item}} owner=stack group=stack mode=0644 with_items: - - cinder-dellps-config.yaml - - environment-rhel-registration.yaml + - templates/cinder-dellps-config.yaml + - templates/environment-rhel-registration.yaml tags: - config - undercloud diff --git a/roles/undercloud/templates/cinder-dellps-config.yaml b/roles/undercloud/templates/templates/cinder-dellps-config.yaml similarity index 100% rename from roles/undercloud/templates/cinder-dellps-config.yaml rename to roles/undercloud/templates/templates/cinder-dellps-config.yaml diff --git a/roles/undercloud/templates/environment-rhel-registration.yaml b/roles/undercloud/templates/templates/environment-rhel-registration.yaml similarity index 100% rename from roles/undercloud/templates/environment-rhel-registration.yaml rename to roles/undercloud/templates/templates/environment-rhel-registration.yaml