From c44bed715133d1fa64056ee31805313b3a5c716a Mon Sep 17 00:00:00 2001
From: handreas <andreas.hamacher@monash.edu>
Date: Fri, 3 Apr 2020 08:01:55 +0000
Subject: [PATCH] variables should not include dashes

Former-commit-id: 9f9ec3b739af0cf00f7755431b3e64b04363d94a
---
 roles/sysctl_network/tasks/main.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/roles/sysctl_network/tasks/main.yml b/roles/sysctl_network/tasks/main.yml
index c7824dc3..ca279fb9 100644
--- a/roles/sysctl_network/tasks/main.yml
+++ b/roles/sysctl_network/tasks/main.yml
@@ -5,7 +5,7 @@
     dest: '/etc/sysctl.d'
   become: true
   become_user: root
-  register: sysctl-network-conf
+  register: sysctl_network_conf
 
 #The sysctl module manages entries in sysctl.conf and setting "reload :yes" performs a /sbin/sysctl -p if the sysctl file is updated. In addition this module requires a name for a specific sysctl variable in order to work.
 #In this case we need to update the network configuration and making no change to the sysctl.conf file hence the module is not applicable. I am replacing it with a shell module instead.
@@ -13,4 +13,4 @@
   shell: sysctl -p
   become: true
   become_user: root
-  when: sysctl-network-conf.changed
+  when: sysctl_network_conf.changed
-- 
GitLab