From 5c87e97a450922e0a600ae6ce7f9684789df6476 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 20 May 2014 22:51:27 -0400 Subject: [PATCH] now module searches for update-alternatives vs hardcoding it --- system/alternatives | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/alternatives b/system/alternatives index 5fca68c5ef8..b80ffab944c 100755 --- a/system/alternatives +++ b/system/alternatives @@ -53,7 +53,6 @@ EXAMPLES = ''' alternatives: name=hadoop-conf link=/etc/hadoop/conf path=/etc/hadoop/conf.ansible ''' -UPDATE_ALTERNATIVES = '/usr/sbin/update-alternatives' DEFAULT_LINK_PRIORITY = 50 def main(): @@ -71,6 +70,8 @@ def main(): path = params['path'] link = params['link'] + UPDATE_ALTERNATIVES = module.get_bin_path('update-alternatives',True) + current_path = None all_alternatives = []