Closed wendrul closed 1 month ago
You can specify static variables and resources like this:
extra_vars: inventroy_resource: type: windmill_resource resource: u/admin/other_inventory my_var: type: windmill_variable variable: u/admin/beneficent_variable
They will not appear on the frontend UI but still be passed as extra-vars to the ansible playbook
Also you can specify some options:
options: - vvv #verbosity - forks: 5 - flush_cache
Various CLI fixes
[!IMPORTANT] Add support for static variables, resources, and execution options in Ansible playbooks via YAML configuration. Behavior: Support for static variables and resources in Ansible playbooks via YAML in parse_ansible_sig() and parse_ansible_reqs(). Options like verbosity and forks can be specified in YAML and parsed in parse_ansible_options(). Functions: parse_ansible_arg_typ(), get_default_for_typ(), and yaml_to_json() added to handle new YAML structures in lib.rs. get_cmd_options() in ansible_executor.rs to convert options to command-line arguments. Structures: AnsiblePlaybookOptions and AnsibleRequirements updated to include new fields for options, vars, and resources. Misc: Added Ansible support to inferContentTypeFromFilePath() in script_common.ts. Updated ZipFSElement() in sync.ts to handle Ansible playbooks. Published pkg-yaml in publish-pkgs.sh. This description was created by for b41a5d04f772ef58e260e6e7ab86d0447d748bf2. It will automatically update as commits are pushed.
[!IMPORTANT] Add support for static variables, resources, and execution options in Ansible playbooks via YAML configuration.
parse_ansible_sig()
parse_ansible_reqs()
parse_ansible_options()
parse_ansible_arg_typ()
get_default_for_typ()
yaml_to_json()
lib.rs
get_cmd_options()
ansible_executor.rs
AnsiblePlaybookOptions
AnsibleRequirements
inferContentTypeFromFilePath()
script_common.ts
ZipFSElement()
sync.ts
pkg-yaml
publish-pkgs.sh
This description was created by for b41a5d04f772ef58e260e6e7ab86d0447d748bf2. It will automatically update as commits are pushed.
b41a5d0
View logs
Closes #4370
You can specify static variables and resources like this:
They will not appear on the frontend UI but still be passed as extra-vars to the ansible playbook
Also you can specify some options:
Various CLI fixes