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

Default variables can't be overridden #12

Open
egguy opened this issue Apr 19, 2022 · 1 comment
Open

Default variables can't be overridden #12

egguy opened this issue Apr 19, 2022 · 1 comment

Comments

@egguy
Copy link

egguy commented Apr 19, 2022

Hi,

I'm trying to use the role, and it seems there are some problems with the variables.
I want to use a version defined in the all vars, like thus:

weed:
  version: '2.99'

But it's not taken into account, the only way is to put :

input:
  version: '2.99'

I've also tried the weed_version, but it's not working either.

It seems the problem come from this line:

weed: "{{ default_weed | combine((input | default({})), recursive=True) }}"

Perhaps I'm missing something.

Thx for the role

@washcycle
Copy link

You need the a - in from of version and then it should work.

input:
  - version: '2.99'
    large_disk: false
    ....
roles:
  - role: ansible-role-seaweedfs      

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

No branches or pull requests

2 participants