| | |
| | | - ocp4_idm_htpasswd_user_password_hash is not defined |
| | | - htpasswd_line is succeeded |
| | | |
| | | - name: Generate htpasswd hash for ocp4_idm_htpasswd_admin_user |
| | | - name: Generate htpasswd hash for ocp4_idm_admin_user |
| | | shell: >- |
| | | htpasswd -nb "admin" "{{ ocp4_idm_htpasswd_admin_password }}"|cut -d: -f2 |
| | | register: htpasswd_line |
| | |
| | | |
| | | - name: Generate htpasswd file |
| | | template: |
| | | src: "./files/htpasswd.j2" |
| | | src: "htpasswd.j2" |
| | | dest: "/home/{{ ansible_user }}/users.htpasswd" |
| | | owner: "{{ ansible_user }}" |
| | | mode: 0664 |
| | |
| | | loop: |
| | | - "user.info: HTPasswd Authentication is enabled on this cluster." |
| | | - "user.info: {{ ocp4_idm_htpasswd_user_base }}1 .. {{ ocp4_idm_htpasswd_user_base }}{{ ocp4_idm_htpasswd_user_count }} are created." |
| | | - "user.info: User `{{ ocp4_idm_htpasswd_admin_user }}` is a cluster-admin" |
| | | - "user.info: User `{{ ocp4_idm_admin_user }}` is a cluster-admin" |
| | | |
| | | - name: Setup OpenTLC LDAP Authentication |
| | | when: ocp4_idm_install == "ldap" |