-
Notifications
You must be signed in to change notification settings - Fork 653
Deprecate the ansible provision mode and playbook #3451
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -277,6 +277,7 @@ func Validate(y *LimaYAML, warn bool) error { | |
if _, err := os.Stat(playbook); err != nil { | ||
return fmt.Errorf("field `provision[%d].playbook` refers to an inaccessible path: %q: %w", i, playbook, err) | ||
} | ||
logrus.Warnf("ansible provision mode is deprecated, use `ansible-playbook %q` instead", playbook) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure it is clear to the user that Nit-picking: |
||
} | ||
if strings.Contains(p.Script, "LIMA_CIDATA") { | ||
logrus.Warn("provisioning scripts should not reference the LIMA_CIDATA variables") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -256,6 +256,8 @@ containerd: | |
# # It requires `ansible-playbook` command to be installed. | ||
# # Environment variables such as ANSIBLE_CONFIG can be used, to control the behavior of the playbook execution. | ||
# # See ansible docs, and `ansible-config`, for more info https://docs.ansible.com/ansible/latest/playbook_guide/ | ||
# # DEPRECATED The ansible mode is deprecated, and should not be used. Instead call ansible-playbook directly, | ||
# # either from the host after the instance is started or from the instance by running ansible locally instead. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can add an |
||
# - mode: ansible | ||
# playbook: playbook.yaml | ||
# # `data` is a file that is written to the guest filesystem and not executed at all. | ||
|
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.
https://lima-vm.io/docs/releases/deprecated/ has to be updated