Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Question about extra_args #539

Closed
Evantage-WS opened this issue Jul 9, 2024 · 1 comment
Closed

Question about extra_args #539

Evantage-WS opened this issue Jul 9, 2024 · 1 comment

Comments

@Evantage-WS
Copy link

Evantage-WS commented Jul 9, 2024

Hi,

I am using this collection and it is working very well, thanks.

I am calling your collection from my own playbook with this:

- name: Import the k3s playbook with flannel
  ansible.builtin.import_playbook: "/Users/xxxxx/.ansible/collections/ansible_collections/techno_tim/k3s_ansible/site.yml"
  vars:
    k3s_version: "{{ hostvars['localhost']['k3s_version'] }}"
    k3s_token: "{{ hostvars['localhost']['k3s_token'] }}"
    apiserver_endpoint: "{{ hostvars['localhost']['apiserver_endpoint'] }}"
    k3s_master_taint: "{{ hostvars['localhost']['k3s_master_taint'] }}"
    kube_vip_lb_ip_range: "{{ hostvars['localhost']['kube_vip_lb_ip_range'] }}"
    k3s_cni: "{{ hostvars['localhost']['k3s_cni'] }}"
    install_k3s: "{{ hostvars['localhost']['install_k3s'] }}"
    flannel_iface: "{{ hostvars['localhost']['k8s_interface'] }}"
    extra_args: "--disable local-storage"
  when:
    - install_k3s | default (false) | bool
    - k3s_cni == "flannel"```

and all is working, except the extra_args. Can you tell me how I should have the extra argument stated?
It is failing like this and when I remove the complete extra_args line all is working again.

I have also tried

extra_args: >-
  "--disable local-storage"

and

extra_args: >-
  --disable local-storage

Thanks!

@Evantage-WS
Copy link
Author

Found it, this was the fix:

    extra_args:
      - "--disable local-storage"

@techno-tim techno-tim locked and limited conversation to collaborators Jul 10, 2024
@timothystewart6 timothystewart6 converted this issue into discussion #540 Jul 10, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant