<commit_before>---
- name: Creating admin project, user, role, service, and endpoint
  command: docker exec keystone kolla_keystone_bootstrap {{ openstack_auth.username }} {{ openstack_auth.password }} {{ openstack_auth.project_name }} admin {{ keystone_admin_url }} {{ keystone_internal_url }} {{ keystone_public_url }} {{ item }}
  register: keystone_bootstrap
  changed_when: "{{ (keystone_bootstrap.stdout | from_json).changed }}"
  failed_when: "{{ (keystone_bootstrap.stdout | from_json).failed }}"
  run_once: True
  with_items: "{{ multiple_regions_names }}"

- name: Creating default user role
  kolla_toolbox:
    module_name: "os_keystone_role"
    module_args:
      name: "{{ keystone_default_user_role }}"
      auth: "{{ '{{ openstack_keystone_auth }}' }}"
    module_extra_vars:
      openstack_keystone_auth: "{{ openstack_keystone_auth }}"
  run_once: True<commit_msg>Retry Keystone's default user role creation<commit_after>---
- name: Creating admin project, user, role, service, and endpoint
  command: docker exec keystone kolla_keystone_bootstrap {{ openstack_auth.username }} {{ openstack_auth.password }} {{ openstack_auth.project_name }} admin {{ keystone_admin_url }} {{ keystone_internal_url }} {{ keystone_public_url }} {{ item }}
  register: keystone_bootstrap
  changed_when: "{{ (keystone_bootstrap.stdout | from_json).changed }}"
  failed_when: "{{ (keystone_bootstrap.stdout | from_json).failed }}"
  run_once: True
  with_items: "{{ multiple_regions_names }}"

- name: Creating default user role
  kolla_toolbox:
    module_name: "os_keystone_role"
    module_args:
      name: "{{ keystone_default_user_role }}"
      auth: "{{ '{{ openstack_keystone_auth }}' }}"
    module_extra_vars:
      openstack_keystone_auth: "{{ openstack_keystone_auth }}"
  register: default_role
  until: default_role|success
  retries: 10
  delay: 5
  run_once: True
{'fraction_non_alphanumeric': 0.12327311370882041, 'fraction_numerical': 0.001594048884165781, 'mean_word_length': 5.113636363636363, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5616460', 'n_tokens_mistral': 634, 'n_tokens_neox': 591, 'n_words': 118}