Skip to content

Commit

Permalink
Fixed Issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
malavolti committed Nov 12, 2019
1 parent a31f04e commit 81e4b4b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions roles/idp/tasks/idp-style-lang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,26 @@
notify:
- "Restart Apache"

- name: "Check if a custom 'info.html' is provided under {{ files_dir }}/{{ fqdn }}/idp/styles/{{ lang }}/"
stat:
path: "{{ files_dir }}/{{ fqdn }}/idp/styles/{{ item.key }}/info.html"
delegate_to: 127.0.0.1
with_dict: "{{ idp_metadata }}"
register: info_html
changed_when: false

- name: "Put the Custom Info Page in the interested languages in the right position"
copy:
src: "{{ files_dir }}/{{ fqdn }}/idp/styles/{{ item.item.key }}/info.html"
dest: "/var/www/html/{{ item.item.key }}/info.html"
owner: "root"
group: "root"
mode: "0644"
with_items: "{{ info_html.results }}"
when: item.stat.exists
notify:
- "Restart Apache"

- name: "Put the Information Page in the interested languages in the right position"
template:
src: "styles/{{ item.key }}/info.html.j2"
Expand All @@ -130,6 +150,26 @@
notify:
- "Restart Apache"

- name: "Check if a custom 'privacy.html' is provided under {{ files_dir}}/{{ fqdn }}/idp/styles/{{ lang }}/"
stat:
path: "{{ files_dir }}/{{ fqdn }}/idp/styles/{{ item.key }}/privacy.html"
delegate_to: 127.0.0.1
with_dict: "{{ idp_metadata }}"
register: privacy_html
changed_when: false

- name: "Put the Custom Privacy Policy Page in the interested languages in the right position"
copy:
src: "{{ files_dir }}/{{ fqdn }}/idp/styles/{{ item.item.key }}/privacy.html"
dest: "/var/www/html/{{ item.item.key }}/privacy.html"
owner: "root"
group: "root"
mode: "0644"
with_items: "{{ privacy_html.results }}"
when: item.stat.exists
notify:
- "Restart Apache"

- name: "Put the Privacy Policy Page in the interested languages in the right position"
template:
src: "styles/{{ item.key }}/privacy.html.j2"
Expand Down

0 comments on commit 81e4b4b

Please sign in to comment.