|
@@ -42,43 +42,7 @@
|
|
dest: "{{ openshift_master_scheduler_conf }}"
|
|
dest: "{{ openshift_master_scheduler_conf }}"
|
|
backup: true
|
|
backup: true
|
|
|
|
|
|
-- name: Install httpd-tools if needed
|
|
|
|
- package: name=httpd-tools state=present
|
|
|
|
- when:
|
|
|
|
- - item.kind == 'HTPasswdPasswordIdentityProvider'
|
|
|
|
- - not openshift_is_atomic | bool
|
|
|
|
- with_items: "{{ openshift_master_identity_providers }}"
|
|
|
|
- register: result
|
|
|
|
- until: result is succeeded
|
|
|
|
-
|
|
|
|
-- name: Ensure htpasswd directory exists
|
|
|
|
- file:
|
|
|
|
- path: "{{ item.filename | dirname }}"
|
|
|
|
- state: directory
|
|
|
|
- when:
|
|
|
|
- - item.kind == 'HTPasswdPasswordIdentityProvider'
|
|
|
|
- with_items: "{{ openshift_master_identity_providers }}"
|
|
|
|
-
|
|
|
|
-- name: Create the htpasswd file if needed
|
|
|
|
- template:
|
|
|
|
- dest: "{{ item.filename }}"
|
|
|
|
- src: htpasswd.j2
|
|
|
|
- backup: yes
|
|
|
|
- mode: 0600
|
|
|
|
- when:
|
|
|
|
- - item.kind == 'HTPasswdPasswordIdentityProvider'
|
|
|
|
- - openshift_master_manage_htpasswd | bool
|
|
|
|
- with_items: "{{ openshift_master_identity_providers }}"
|
|
|
|
-
|
|
|
|
-- name: Ensure htpasswd file exists
|
|
|
|
- copy:
|
|
|
|
- dest: "{{ item.filename }}"
|
|
|
|
- force: no
|
|
|
|
- content: ""
|
|
|
|
- mode: 0600
|
|
|
|
- when:
|
|
|
|
- - item.kind == 'HTPasswdPasswordIdentityProvider'
|
|
|
|
- with_items: "{{ openshift_master_identity_providers }}"
|
|
|
|
|
|
+- import_tasks: htpass_provider.yml
|
|
|
|
|
|
- name: Create the ldap ca file if needed
|
|
- name: Create the ldap ca file if needed
|
|
copy:
|
|
copy:
|