-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
apply nmcli configuration #3752
Comments
Files identified in the description: If these files are incorrect, please update the |
NetworkManager doesn't apply changes to an active connection until the configuration is reloaded. In Ansible you would typically notify a handler to either restart NetworkManager or run |
It's not so important through an option or through a state. it is much more convenient when inside the module, and not through the handler. |
Files identified in the description: If these files are incorrect, please update the |
Different operations can require different commands to apply them. Usually restarting NetworkManager is not the recommended/desired thing to do except for some special cases (0 1 2)
Even
Personally I have found it pretty confusing to determine which operation is needed to apply what kind of change when using NetworkManager, which in turn makes it difficult as a user to try to make the nmcli module apply changes, even if I had to write a handler for every invocation of the module which would be very cumbersome. Often
so in that case Anyway even just considering the one case of Preferably the ansible module would "do the right thing" to apply whatever type of change is made with some option |
Summary
Problem: how to apply the configuration on the host after launching the "nmcli" module?
Now I do it through the nmcli up handler. maybe there is another option that I don't know about?
I expected that with the "present" state, they would be applied, since this is the internal mechanism of the NetworkManager.
Perhaps a new state should be added for this?
Issue Type
Feature Idea
Component Name
nmcli
Additional Information
Code of Conduct
The text was updated successfully, but these errors were encountered: