From 337332f771fc9841d1559e5d3881f2ae9d0aa8a5 Mon Sep 17 00:00:00 2001 From: "Kenneth D. Evensen" Date: Tue, 5 Sep 2017 16:08:10 -0400 Subject: [PATCH] Added ability to change apiport and apihost and defaults --- tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 5389dcd..21a2078 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,6 +11,8 @@ description: "{{ project_description }}" validate_certs: "{{ validate_certs }}" token: "{{ ansible_sa_token }}" + apiport: "{{ apiport | default(8443) }}" + apihost: "{{ apihost | default('localhost') }}" - name: Create user {{ user_name }} oc: state: present @@ -21,6 +23,8 @@ name: "{{ user_name }}" validate_certs: "{{ validate_certs }}" token: "{{ ansible_sa_token }}" + apiport: "{{ apiport | default(8443) }}" + apihost: "{{ apihost | default('localhost') }}" - name: Add project role {{ project_role }} to user {{ user_name }} oc: state: present @@ -35,6 +39,8 @@ - "{{ user_name }}" validate_certs: "{{ validate_certs }}" token: "{{ ansible_sa_token }}" + apiport: "{{ apiport | default(8443) }}" + apihost: "{{ apihost | default('localhost') }}" - name: Set project quotas oc: state: present @@ -52,6 +58,8 @@ persistentvolumeclaims: "{{ pvc_quota }}" validate_certs: "{{ validate_certs }}" token: "{{ ansible_sa_token }}" + apiport: "{{ apiport | default(8443) }}" + apihost: "{{ apihost | default('localhost') }}" - name: Add Managed Label oc: @@ -64,3 +72,5 @@ ansible_managed: 'true' validate_certs: "{{ validate_certs }}" token: "{{ ansible_sa_token }}" + apiport: "{{ apiport | default(8443) }}" + apihost: "{{ apihost | default('localhost') }}"