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

Allow skipping sections when passwordstore is not available #2

Open
bwachter opened this issue Jun 18, 2020 · 1 comment
Open

Allow skipping sections when passwordstore is not available #2

bwachter opened this issue Jun 18, 2020 · 1 comment

Comments

@bwachter
Copy link
Member

Many steps are safe to execute even without password store available. For example, basic-host can ensure the default root password is correctly set, but all other steps work fine without password store.

To prevent wide access to a password store or limiting the amount of users capable of running ansible availability of password store should be checked - either by decrypting a test password, or through explicit variable.

Based on that we should have three outcomes:

  • if a single task can be skipped easily (like root password) it should just be skipped
  • if a complete role can't be executed without passwords the role should check at the very beginning, and skip, if it's safely possible to do so
  • if it's not safely possible to skip a role an error for that host should be reported.

The first two parts should be easy to implement, the last one might be a bit more tricky as the definition of 'safe' may depend on which other roles are supposed to be executed later on, or which hosts are selected for execution. For example, parts of a cluster setup can be safely skipped when touching only one host, but should not be skipped when running against the cluster host group.

@bwachter
Copy link
Member Author

Initial support for this is now there. Missing:

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