Skip to content
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

Merged
merged 4 commits into from
May 23, 2018

Conversation

djzager
Copy link
Contributor

@djzager djzager commented May 22, 2018

No description provided.

@jmontleon
Copy link
Contributor

ACK

@@ -1,6 +1,6 @@
---

apiVersion: v1
Copy link
Contributor

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

@@ -1,6 +1,6 @@
---

apiVersion: v1
apiVersion: {{ pvc_api_version }}
Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor Author

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:
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@djzager djzager merged commit 4738c47 into ansibleplaybookbundle:master May 23, 2018
@djzager djzager deleted the check-ansible-version branch May 23, 2018 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants