Browse Source

blockinfile: change from "content" to "block"

It solves the diff bug :
https://github.com/ansible/ansible/issues/62315
pull/119/head
Jérémy Lecour 1 month ago
committed by Jérémy Lecour
parent
commit
84bd3372d5
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      minifirewall/tasks/config.yml
  2. +1
    -1
      redis/tasks/default-log2mail.yml

+ 2
- 2
minifirewall/tasks/config.yml View File

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


+ 1
- 1
redis/tasks/default-log2mail.yml View File

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


Loading…
Cancel
Save