<commit_before>---

- name: Install the Python MySQLDB module
  apt: name=python-mysqldb

- name: create database
  mysql_db: name=keystone state=present

- name: create keystone user
  mysql_user: name=keystone host={{ item }} password={{ <PASSWORD> }} priv=keystone.*:ALL state=present
  with_items:
    - localhost
    - "%"

- name: install keystone packages
  apt: pkg={{ item }} update_cache=yes cache_valid_time=3600
  with_items:
    - keystone
    - apache2
    - libapache2-mod-wsgi

- name: edit keystone conf file
  template: src=keystone.conf.j2 dest=/etc/keystone/keystone.conf

- name: Populate the Identity service database
  script: keystone_db_sync.sh

- name: Initialize Fernet keys
  command: keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone

- name: Initialize credential
  command: keystone-manage credential_setup --keystone-user keystone --keystone-group keystone

- name: bootstrap the identity service
  command: |
    keystone-manage bootstrap --bootstrap-password {{ <PASSWORD> }} \
    --bootstrap-admin-url http://{{ api_host }}:35357/v3/ \
    --bootstrap-internal-url http://{{ api_host }}:35357/v3/ \
    --bootstrap-public-url http://{{ api_host }}:35357/v3/ \
    --bootstrap-region_id RegionOne

- name: edit apache conf file
  template: src=apache2.conf.j2 dest=/etc/apache2/apache2.conf

- name: Restart the Apache HTTP server
  service: name=apache2 state=restarted

- name: Create projects, users, and roles
  script: create_tenants_users_roles.sh {{ ADMIN_PASS }} {{ DEMO_PASS }}
  environment: temp_auth_token<commit_msg>Fix keystone role<commit_after>---

- name: Install the Python MySQLDB module
  apt: name=python-mysqldb

- name: create database
  mysql_db: name=keystone state=present

- name: create keystone user
  mysql_user: name=keystone host={{ item }} password={{ <PASSWORD> }} priv=keystone.*:ALL state=present
  with_items:
    - localhost
    - "%"

- name: install keystone packages
  apt: pkg={{ item }} update_cache=yes cache_valid_time=3600
  with_items:
    - keystone
    - apache2
    - libapache2-mod-wsgi

- name: edit keystone conf file
  template: src=keystone.conf.j2 dest=/etc/keystone/keystone.conf

- name: Populate the Identity service database
  script: keystone_db_sync.sh

- name: Initialize Fernet keys
  command: keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone

- name: Initialize credential
  command: keystone-manage credential_setup --keystone-user keystone --keystone-group keystone

- name: bootstrap the identity service
  command: |
    keystone-manage bootstrap --bootstrap-password {{ <PASSWORD>_PASS }} \
    --bootstrap-admin-url http://{{ api_host }}:35357/v3/ \
    --bootstrap-internal-url http://{{ api_host }}:35357/v3/ \
    --bootstrap-public-url http://{{ api_host }}:35357/v3/ \
    --bootstrap-region-id RegionOne

- name: edit apache conf file
  template: src=apache2.conf.j2 dest=/etc/apache2/apache2.conf

- name: Restart the Apache HTTP server
  service: name=apache2 state=restarted

- name: Create projects, users, and roles
  script: create_tenants_users_roles.sh {{ ADMIN_PASS }} {{ DEMO_PASS }}
  environment: "{{ admin_openrc }}"
{'fraction_non_alphanumeric': 0.11961274203622736, 'fraction_numerical': 0.018738288569643973, 'mean_word_length': 3.780597014925373, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6632443', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1028, 'n_words': 265}