Files
tripleo-operator-ansible/roles/tripleo-container-image-show/README.md
Alex Schultz 212ed4590a Add container image show role
Add tripleo-container-image-show that will return the container details.

Change-Id: I6aa82fba2d555ea1be831bc672ce79d0e21a296e
2020-01-15 11:30:50 -07:00

1.5 KiB

tripleo-container-image-show

A role to perform the container image show against a registry.

Requirements

None.

Role Variables

  • tripleo_container_image_show_debug: (Boolean) Flag to print out the show command. Default: False
  • tripleo_container_image_show_format: (String) The format that the output will be in. By default we specify 'json' so that the output will be parsed in ansible. Default: json
  • tripleo_container_image_show_image: (String) Image to fetch the details
  • tripleo_container_image_show_password: (String) Password for the registry
  • tripleo_container_image_show_username: (String) Username for the registry

Output Variables

  • tripleo_container_image_show_output: (Dictionary|String) If tripleo_container_image_show_format is json, the results will automatically be parsed and a dictionary is returned. If another format is used then this will be the response in String format.
  • tripleo_container_image_show_result: Ansible shell execution results

Dependencies

None.

Example Playbook

Example container show execution playbook

- hosts: undercloud
  gather_facts: true
  tasks:
    - name: List containers
      import_role:
        name: tripleo-container-image-show
      vars:
        tripleo_container_image_show_image: docker.io/library/centos:7
    - name: Print containers
      debug:
        var: tripleo_container_image_show_output

License

Apache-2.0