htpass_provider.yml 853 B

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. - name: Install httpd-tools if needed
  3. package:
  4. name: httpd-tools
  5. state: present
  6. when:
  7. - item.kind == 'HTPasswdPasswordIdentityProvider'
  8. - not openshift_is_atomic | bool
  9. with_items: "{{ openshift_master_identity_providers }}"
  10. register: result
  11. until: result is succeeded
  12. - name: Create the htpasswd file if needed
  13. template:
  14. dest: "/etc/origin/master/htpasswd"
  15. src: htpasswd.j2
  16. backup: yes
  17. mode: 0600
  18. when:
  19. - item.kind == 'HTPasswdPasswordIdentityProvider'
  20. - openshift_master_manage_htpasswd | bool
  21. with_items: "{{ openshift_master_identity_providers }}"
  22. - name: Ensure htpasswd file exists
  23. copy:
  24. dest: "/etc/origin/master/htpasswd"
  25. force: no
  26. content: ""
  27. mode: 0600
  28. when:
  29. - item.kind == 'HTPasswdPasswordIdentityProvider'
  30. with_items: "{{ openshift_master_identity_providers }}"