Browse Source

Add debug output when rendering container files

This change adds a debug print statement which will assist in debugging should there
ever be an issue rendering files.

This change also removes the tcib_pre_build option, this var was not doing anything
and creating condusion when executing role builds.

Change-Id: I2f2003cfa00873d3669c94711635c51c4ac69ab3
Signed-off-by: Kevin Carter <kecarter@redhat.com>
changes/41/726441/5
Kevin Carter 2 years ago committed by Kevin Carter (cloudnull)
parent
commit
1543b75697
  1. 3
      tripleo_ansible/roles/tripleo_container_image_build/defaults/main.yml
  2. 4
      tripleo_ansible/roles/tripleo_container_image_build/tasks/main.yml

3
tripleo_ansible/roles/tripleo_container_image_build/defaults/main.yml

@ -76,6 +76,3 @@ tcib_actions: []
# List of Strings, optional, <item>, Collects file from the host and stores them in the build directory.
tcib_gather_files: []
# Boolean, enables the gathering of files.
tcib_pre_build: false

4
tripleo_ansible/roles/tripleo_container_image_build/tasks/main.yml

@ -17,7 +17,7 @@
# "tripleo_container_image_build" will search for and load any operating system variable file
- name: Ensure path exists
- name: "Ensure {{ tcib_path }} exists"
file:
path: "{{ tcib_path }}"
state: "directory"
@ -28,8 +28,6 @@
dest: "{{ tcib_path }}/{{ item }}"
flat: true
loop: "{{ tcib_gather_files }}"
when:
- tcib_pre_build | bool
- name: Create a container file
template:

Loading…
Cancel
Save