Skip to content

Commit

Permalink
Added ability to change apiport and apihost and defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth D. Evensen committed Sep 5, 2017
1 parent 04ea966 commit 337332f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -64,3 +72,5 @@
ansible_managed: 'true'
validate_certs: "{{ validate_certs }}"
token: "{{ ansible_sa_token }}"
apiport: "{{ apiport | default(8443) }}"
apihost: "{{ apihost | default('localhost') }}"

0 comments on commit 337332f

Please sign in to comment.