From 289f813f95a1b40164ea4b00912ca38d77b6c683 Mon Sep 17 00:00:00 2001 From: Rene Mewissen Date: Sun, 16 Jul 2023 15:42:45 +0200 Subject: [PATCH] defined insertafter --- roles/server/tasks/utilities/snmpd.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/server/tasks/utilities/snmpd.yml b/roles/server/tasks/utilities/snmpd.yml index 1c82faf..d945336 100644 --- a/roles/server/tasks/utilities/snmpd.yml +++ b/roles/server/tasks/utilities/snmpd.yml @@ -62,6 +62,7 @@ line: "^sysLocation.*$" state: present line: "sysLocation {{ snmp_location }}" + insertafter: "# SECTION: System Information Setup" - name: server | snmpd | set sysContact lineinfile: @@ -69,6 +70,7 @@ line: "^sysContact.*$" state: present line: "sysContact {{ snmp_contact }}" + insertafter: "# SECTION: System Information Setup" - name: server | snmpd | enable service on all interfaces lineinfile: