spark/roles/base
Ruslan Kiianchuk eb1d298446 Validate sudoers file before copying
Ansible `copy` module has `validation` parameter that allows to validate the file prior to replacing it on remote:

> The validation command to run before copying into place. The path to the file to validate is passed in via '%s' which must be present as in the example below. The command is passed securely so shell features like expansion and pipes won't work.

Here we use `visudo` to validate the file before writing it in place, so the user won't lock himself out in case of incorrect changes to `sudoers.j2` template.
2016-07-18 14:01:56 -07:00
..
files use a systemd timer for paccache cleanup 2016-01-19 22:31:47 -08:00
handlers add handlers 2016-01-30 16:01:47 -08:00
meta add handlers 2016-01-30 16:01:47 -08:00
tasks Validate sudoers file before copying 2016-07-18 14:01:56 -07:00
templates avoid log rotation recursion of doom 2016-02-16 21:42:32 -08:00