only touch domains.txt, actual domains get handled in separate role

This commit is contained in:
David Kilias 2021-02-06 18:49:15 +01:00
parent 9a1d0c3c09
commit aeaa4574cc
2 changed files with 3 additions and 10 deletions

View file

@ -16,10 +16,9 @@
state: link state: link
- name: Ensure domains.txt is present. - name: Ensure domains.txt is present.
ansible.builtin.template: ansible.builtin.file:
src: /templates/domains.txt.j2 path: "{{ dehydrated_config }}/domains.txt"
dest: "{{ dehydrated_config }}/domains.txt" state: touch
register: dehydomains
- name: Ensure config is present. - name: Ensure config is present.
ansible.builtin.template: ansible.builtin.template:

View file

@ -1,6 +0,0 @@
{{ inventory_hostname }}
{% if extra_hostnames is defined %}
{% for hostname in extra_hostnames %}
{{ hostname }}
{% endfor %}
{% endif %}