ansible/roles/pwgen/tasks/main.yaml

34 lines
784 B
YAML

- name: Create passwords.yaml file
file:
name: "{{ inventory_dir }}/group_vars/all/passwords.yaml"
state: touch
- name: Create files directory for ddclient tsig
file:
name: "{{ playbook_dir }}/files/{{ namespace }}"
state: directory
- include_tasks: passwords.yaml
loop: "{{ default_accounts }}"
- include_tasks: secrets.yaml
loop: "{{ secret_keys }}"
- include_tasks: htpasswd.yaml
loop: "{{ htpasswd_accounts }}"
- include_tasks: passwords.yaml
loop: "{{ openldap_custom_users }}"
when: openldap_custom_users is defined
- include_tasks: passwords.yaml
loop: "{{ openldap_simple_users }}"
when: openldap_simple_users is defined
- include_tasks: tsig.yaml
- include_tasks: dkim.yaml
- include_tasks: vapid.yaml
loop: "{{ vapid_keys }}"