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

Auto config rollback if something goes wrong #59

Open
ypid opened this issue Nov 16, 2016 · 0 comments
Open

Auto config rollback if something goes wrong #59

ypid opened this issue Nov 16, 2016 · 0 comments

Comments

@ypid
Copy link
Member

ypid commented Nov 16, 2016

Simple example. I have a host with one interface and I want to reconfigure that interface. Now it can happen that I make a mistake, for example by specifying a IP address without subnet mask (has happened to me a couple of times), then I run the role and lost network connectivity to the host. With the reintroduced ifupdown__reconfigure_auto this can be somewhat limited, but one might not catch all mistakes easily thus it would be nice if the script which applies the interface config would roll back to the last known good state if something goes wrong.

The question is just how to detect that. I see two options:

  • Interface can not be brought up because of an error. Every simple to detect.
  • No connectivity to the Ansible controller. Maybe try to ping the Ansible Controller which configures the remote host and if there is no response, assume something has gone wrong, of course, allow to influence this detection by inventory variables.

Related to: #58 (comment)
PS: I really liked pyroman because of that feature 😉

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

1 participant