tripleo-operator-ansible/roles/tripleo_container_image_delete
Alex Schultz d2b23da366 Add ability to write scripts
Add the ability to write out the command being exected to a script for
the roles that aren't single action list/show/remove/etc as they would
not be something to rerun and are really for ansible-only control.

Change-Id: I11ad3c12de21fe0522d13f966783cb413b661646
2020-04-15 16:25:27 -06:00
..
defaults Switch cli data to environment vars 2020-01-29 14:55:09 -07:00
meta Rename roles to use underscore 2020-01-21 10:12:00 -07:00
molecule/default Add ability to write scripts 2020-04-15 16:25:27 -06:00
tasks Add ability to write scripts 2020-04-15 16:25:27 -06:00
tests Fixed flake8 excludes and new-lines 2020-01-27 19:10:31 +00:00
README.md Enabled markdownlint 2020-01-28 13:27:26 +00:00

README.md

tripleo_container_image_delete

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

Requirements

None.

Role Variables

  • tripleo_container_image_delete_become: (Boolean) Run as root. This needs to be true if deleting from the local registry. Default: true
  • tripleo_container_image_delete_debug: (Boolean) Flag to print out the delete command. Default: False
  • tripleo_container_image_delete_image: (String) REQUIRED. Full URL of image to be deleted in the form :/path/to/image.
  • tripleo_container_image_delete_password: (String) Password for the registry
  • tripleo_container_image_delete_registry_url: (String) Registry to run the delete against. Should be in the form :.
  • tripleo_container_image_delete_username: (String) Username for the registry
  • tripleo_container_image_delete_yes: (Boolean) Do not prompt for configuration. Default: true

Output Variables

  • tripleo_container_image_delete_result: Ansible shell execution results

Dependencies

None.

Example Playbook

Example container delete execution playbook

- hosts: undercloud
  gather_facts: true
  tasks:
    - name: Delete containers
      import_role:
        name: tripleo_container_image_delete
      var:
        tripleo_container_image_delete_image: undercloud.ctlplane.localdomain:8787/library/centos:7

License

Apache-2.0