---
- name: Copy htpasswd to /etc/origin/master
  copy: src="users/htpasswd" dest="/etc/origin/master/htpasswd" mode=0644 owner=root group=root force=yes backup=no
  when: "'masters' in group_names"

- include_tasks: users_resources.yml
  args:
    apply:
      run_once: true
      delegate_to: "{{ groups.masters[0] }}"