Module - tripleo_overcloud_role_show¶
Module Documentation¶
Retrieve detailed information about an overcloud role
Module should only be executed under users with access to the role info.
If /home/zuul/overcloud-deploy/overcloud/environment/tripleo-overcloud-environment.yaml is not accessible, or doesn't exist, a suitable alternative has to be provided.
Options¶
- roles_path
 Path to the tripleo heat templates roles directory
- role_name
 Name of the overcloud role
- environment_path
 Path to the tripleo environment file
- default_values
 Dictionary containing default key->value pairs from the requested role
Used only when the keys aren't already defined within the role.
Authors¶
Jiri Podivin <jpodivin@redhat.com>
Example Tasks¶
- name: Get Overcloud role info
  tripleo_overcloud_role_show:
    role_name: Compute
  register: overcloud_role
- name: Write data to output file
  copy:
    content: '{{ overcloud_role.role_detail | to_yaml }}'
    dest: /path/exported-overcloud_role.yaml