htpass_provider.yml 843 B

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