blockinfile: change from "content" to "block"
continuous-integration/drone/push Build is passing Details

It solves the diff bug :
https://github.com/ansible/ansible/issues/62315
This commit is contained in:
Jérémy Lecour 2020-12-02 15:22:35 +01:00 committed by Jérémy Lecour
parent fc71bb5945
commit 84bd3372d5
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@
blockinfile: blockinfile:
dest: "{{ minifirewall_main_file }}" dest: "{{ minifirewall_main_file }}"
marker: "# {mark} ANSIBLE MANAGED BLOCK FOR IPS" marker: "# {mark} ANSIBLE MANAGED BLOCK FOR IPS"
content: | block: |
# Main interface # Main interface
INT='{{ minifirewall_int }}' INT='{{ minifirewall_int }}'
@ -95,7 +95,7 @@
blockinfile: blockinfile:
dest: "{{ minifirewall_main_file }}" dest: "{{ minifirewall_main_file }}"
marker: "# {mark} ANSIBLE MANAGED BLOCK FOR PORTS" marker: "# {mark} ANSIBLE MANAGED BLOCK FOR PORTS"
content: | block: |
# Protected services # Protected services
# (add also in Public services if needed) # (add also in Public services if needed)
SERVICESTCP1p='{{ minifirewall_protected_ports_tcp | join(' ') }}' SERVICESTCP1p='{{ minifirewall_protected_ports_tcp | join(' ') }}'

View File

@ -8,7 +8,7 @@
mode: "0640" mode: "0640"
create: yes create: yes
marker: "# {mark} ANSIBLE MANAGED RULES FOR DEFAULT INSTANCE" marker: "# {mark} ANSIBLE MANAGED RULES FOR DEFAULT INSTANCE"
content: | block: |
file = {{ redis_log_dir }}/redis-server.log file = {{ redis_log_dir }}/redis-server.log
pattern = "Cannot allocate memory" pattern = "Cannot allocate memory"
mailto = {{ log2mail_alert_email or general_alert_email | mandatory }} mailto = {{ log2mail_alert_email or general_alert_email | mandatory }}