tripleo-validations/roles/controller-token/tasks/main.yml

14 lines
333 B
YAML

---
- name: Fetch token value
become: true
validations_read_ini:
path: "{{ keystone_conf_file }}"
section: DEFAULT
key: admin_token
ignore_missing_file: True
register: token_result
- name: Check if token value is disabled.
fail: msg="Keystone admin token is not disabled."
when: token_result.value != None