summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Dodwell <michael@dodwell.us>2018-08-03 21:48:40 +1000
committeransibot <ansibot@users.noreply.github.com>2018-08-03 07:48:40 -0400
commit5130b67159d6f63e9a766e5b4dfbc3c406d328c7 (patch)
tree2834581e6101e0067613c8197fa6c9c9e7815230
parent93a42699572d38f480e9639cbc093bcf095f5529 (diff)
downloadansible-5130b67159d6f63e9a766e5b4dfbc3c406d328c7.tar.gz
Allow for the specification of a rhsm_repo_ca_cert if changing baseurl (#43343)
* Allow for the specification of a rhsm_repo_ca_cert if changing baseurl If changing the baseurl we should allow for a ca cert to be updated from redhat-uep.pem * Fixing documentation section * added version to option rhsm_repo_ca_cert * got rid of extra CR
-rw-r--r--lib/ansible/modules/packaging/os/redhat_subscription.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ansible/modules/packaging/os/redhat_subscription.py b/lib/ansible/modules/packaging/os/redhat_subscription.py
index dca3e67117..15b3c590c3 100644
--- a/lib/ansible/modules/packaging/os/redhat_subscription.py
+++ b/lib/ansible/modules/packaging/os/redhat_subscription.py
@@ -50,6 +50,10 @@ options:
rhsm_baseurl:
description:
- Specify CDN baseurl
+ rhsm_repo_ca_cert:
+ description:
+ - Specify an alternative location for a CA certificate for CDN
+ version_added: "2.7"
server_proxy_hostname:
description:
- Specify a HTTP proxy hostname
@@ -621,6 +625,7 @@ def main():
required=False),
rhsm_baseurl=dict(default=None,
required=False),
+ rhsm_repo_ca_cert=dict(default=None, required=False),
auto_attach=dict(aliases=['autosubscribe'], default=False, type='bool'),
activationkey=dict(default=None,
required=False,
@@ -674,6 +679,7 @@ def main():
server_hostname = module.params['server_hostname']
server_insecure = module.params['server_insecure']
rhsm_baseurl = module.params['rhsm_baseurl']
+ rhsm_repo_ca_cert = module.params['rhsm_repo_ca_cert']
auto_attach = module.params['auto_attach']
activationkey = module.params['activationkey']
org_id = module.params['org_id']