remove default values

This commit is contained in:
Élie Deloumeau-Prigent 2021-09-29 17:21:52 +02:00
parent 53faa7d96b
commit e3144338e6
No known key found for this signature in database
GPG Key ID: 94F059CE0C5FF9D9

View File

@ -24,7 +24,7 @@
- name: Apply template {{ motd_banner_template }} on {{ _motd_banner_file_path }} - name: Apply template {{ motd_banner_template }} on {{ _motd_banner_file_path }}
copy: copy:
content: "{{ motd_banner_template_prepend|default('') + _motd_banner_template_content + motd_banner_template_append|default('') }}" content: "{{ motd_banner_template_prepend + _motd_banner_template_content + motd_banner_template_append }}"
dest: "{{ _motd_banner_file_path }}" dest: "{{ _motd_banner_file_path }}"
owner: root owner: root
group: root group: root
@ -41,7 +41,7 @@
- name: Apply template {{ motd_template }} on {{ _motd_file_path }} - name: Apply template {{ motd_template }} on {{ _motd_file_path }}
copy: copy:
content: "{{ motd_template_prepend|default('') + _motd_template_content + motd_template_append|default('') }}" content: "{{ motd_template_prepend + _motd_template_content + motd_template_append }}"
dest: "{{ _motd_file_path }}" dest: "{{ _motd_file_path }}"
owner: root owner: root
group: root group: root