<commit_before>---
- name: Add Shibboleth repo
  copy: src={{ item }} dest=/etc/yum.repos.d/{{ item }}
  with_items:
    - shibboleth-centos7.repo
    - shibboleth.repo.gpgkey

- name: Install
  yum: name={{ item }} state=present
  with_items:
    - shibboleth.x86_64

- name: Remove default conf files apache
  file: path=/etc/httpd/conf.d/{{ item }} state=absent
  with_items:
    - shib.conf

- name: Copy default config files
  copy: src={{ item }} dest=/etc/httpd/conf.d/20_shib.conf
  with_items:
    - 20_shib_apache24.conf
  notify: reload httpd

- name: shibboleth SP certificate
  copy: src={{ inventory_dir }}/files/certs/{{ item }} dest=/etc/shibboleth/{{ item }}
  with_items:
    - shib-sp.crt
    - shib-sp.key
  notify:
    - restart shibd

- name: Shibboleth config
  template: src=shibboleth/{{ item }}.j2 dest=/etc/shibboleth/{{ item }}
  with_items:
    - attribute-map.xml<commit_msg>shib: sp cert is in file, key is in var<commit_after>---
- name: Add Shibboleth repo
  copy: src={{ item }} dest=/etc/yum.repos.d/{{ item }}
  with_items:
    - shibboleth-centos7.repo
    - shibboleth.repo.gpgkey

- name: Install
  yum: name={{ item }} state=present
  with_items:
    - shibboleth.x86_64

- name: Remove default conf files apache
  file: path=/etc/httpd/conf.d/{{ item }} state=absent
  with_items:
    - shib.conf

- name: Copy default config files
  copy: src={{ item }} dest=/etc/httpd/conf.d/20_shib.conf
  with_items:
    - 20_shib_apache24.conf
  notify: reload httpd

- name: shibboleth SP certificate
  copy: src={{ inventory_dir }}/files/certs/shib-sp.crt dest=/etc/shibboleth/shib-sp.crt
  notify:
    - restart shibd

- name: shibboleth SP key
  copy: content="{{ shibboleth_sp_key }}" dest=/etc/shibboleth/shib-sp.key owner=root group=shibd mode=640
  notify:
    - restart shibd

- name: Shibboleth config
  template: src=shibboleth/{{ item }}.j2 dest=/etc/shibboleth/{{ item }}
  with_items:
    - attribute-map.xml
{'fraction_non_alphanumeric': 0.14241803278688525, 'fraction_numerical': 0.013831967213114754, 'mean_word_length': 3.15531914893617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5502400', 'n_tokens_mistral': 800, 'n_tokens_neox': 776, 'n_words': 167}