From 00ba4525e37b8a7ca0934f5ebfb58a1866a13846 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Wed, 6 Mar 2019 16:50:32 -0500 Subject: [PATCH] allow using env for foreman options (#52693) --- lib/ansible/plugins/inventory/foreman.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/ansible/plugins/inventory/foreman.py b/lib/ansible/plugins/inventory/foreman.py index fee70a79e09..874187186ec 100644 --- a/lib/ansible/plugins/inventory/foreman.py +++ b/lib/ansible/plugins/inventory/foreman.py @@ -25,12 +25,21 @@ DOCUMENTATION = ''' url: description: url to foreman default: 'http://localhost:3000' + env: + - name: FOREMAN_SERVER + version_added: "2.8" user: description: foreman authentication user required: True + env: + - name: FOREMAN_USER + version_added: "2.8" password: description: foreman authentication password required: True + env: + - name: FOREMAN_PASSWORD + version_added: "2.8" validate_certs: description: verify SSL certificate if using https type: boolean