Guillaume Coré
2020-02-07 8f7638dc2e7278b34234363e864e544bc69238d5
ocp4-workload-authentication: Fix variables for htpasswd
1 files modified
1 files renamed
6 ■■■■ changed files
ansible/roles/ocp4-workload-authentication/tasks/workload.yml 6 ●●●● patch | view | raw | blame | history
ansible/roles/ocp4-workload-authentication/templates/htpasswd.j2 patch | view | raw | blame | history
ansible/roles/ocp4-workload-authentication/tasks/workload.yml
@@ -26,7 +26,7 @@
    - 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
@@ -44,7 +44,7 @@
  - name: Generate htpasswd file
    template:
      src: "./files/htpasswd.j2"
      src: "htpasswd.j2"
      dest: "/home/{{ ansible_user }}/users.htpasswd"
      owner: "{{ ansible_user }}"
      mode: 0664
@@ -76,7 +76,7 @@
    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"
ansible/roles/ocp4-workload-authentication/templates/htpasswd.j2