From f25637e07aad30459670731a53fd6dc47e517f52 Mon Sep 17 00:00:00 2001 From: champtar Date: Thu, 6 Jul 2017 13:30:06 -0700 Subject: [PATCH] openwrt_init / opkg: clearly state that python is required (#26471) * openwrt_init: clearly state that python is required As python isn't installed by default on OpenWrt/LEDE, clearly state that python is required Signed-off-by: Etienne CHAMPETIER * opkg: clearly state that python is required As python isn't installed by default on OpenWrt/LEDE, clearly state that python is required Signed-off-by: Etienne CHAMPETIER --- lib/ansible/modules/packaging/os/opkg.py | 3 +++ lib/ansible/modules/system/openwrt_init.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/opkg.py b/lib/ansible/modules/packaging/os/opkg.py index 5e62b3fcdcf..70fc85e6eff 100644 --- a/lib/ansible/modules/packaging/os/opkg.py +++ b/lib/ansible/modules/packaging/os/opkg.py @@ -66,6 +66,9 @@ options: default: "no" choices: [ "yes", "no" ] notes: [] +requirements: + - opkg + - python ''' EXAMPLES = ''' - opkg: diff --git a/lib/ansible/modules/system/openwrt_init.py b/lib/ansible/modules/system/openwrt_init.py index 8acbe85f2de..858a7f10dcb 100644 --- a/lib/ansible/modules/system/openwrt_init.py +++ b/lib/ansible/modules/system/openwrt_init.py @@ -59,7 +59,7 @@ options: notes: - One option other than name is required. requirements: - - An OpenWrt system + - An OpenWrt system (with python) ''' EXAMPLES = '''