-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include vars for ansible version >= 2.6 #33
Include vars for ansible version >= 2.6 #33
Conversation
ACK |
templates/service.yaml
Outdated
@@ -1,6 +1,6 @@ | |||
--- | |||
|
|||
apiVersion: v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is always v1, don't think you need a parameter
templates/pvc.yaml
Outdated
@@ -1,6 +1,6 @@ | |||
--- | |||
|
|||
apiVersion: v1 | |||
apiVersion: {{ pvc_api_version }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is always v1, don't think you need a parameter
@@ -14,6 +14,10 @@ | |||
set_fact: | |||
cluster: "{{ 'openshift' if 'openshift' in oc_version.stdout else 'kubernetes' }}" | |||
|
|||
- name: 'Include variables based on ansible version' | |||
include_vars: ansible_26.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to import the 25 variables as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just use them to override 25 variables.
protocol: TCP | ||
volumeMounts: | ||
- name: mediawiki | ||
mountPath: /persistent | ||
volumes: | ||
- name: mediawiki | ||
persistent_volume_claim: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will these changes work with v1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested using 2.5 and it still worked.
No description provided.