aboutsummaryrefslogtreecommitdiffstats
path: root/roles/htpasswd/tasks/main.yml
blob: 9586c824d7416c37cd1fb41a9895a023c711b91d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
- name: ensure htpasswd service is specified
  fail:
  when: 

- name: set variable for realm generation
  set_facts:
    htpasswd_credentials_: "{{ htpasswd_user }}:{{ htpasswd_password }}"
    htpasswd_file_: "{{ htpasswd_dir }}/{{ htpasswd_service }}"

- name: generate realm file
  shell: echo "{{ htpasswd_credentials_ }}" | htpasswd -I "{{ htpasswd_file_ }}"
remember that computers suck.