yaml: truthy value should be one of [false, true] (truthy)
yaml: wrong indentation: expected 4 but found 2 (indentation)
yaml: too few spaces before comment (comments)
yaml: missing starting space in comment (comments)
yaml: too many blank lines (1 > 0) (empty-lines)
yaml: too many spaces after colon (colons)
yaml: comment not indented like content (comments-indentation)
yaml: no new line character at the end of file (new-line-at-end-of-file)
load-failure: Failed to load or parse file
parser-error: couldn't resolve module/action 'hosts'. This often indicates a misspelling, missing collection, or incorrect module path.
Uniformly use the expension flag instead of the modifier.
Use single quotes instead of backslashes for the outer quoting to reduce
the amount of quoting needed.
Try not to scan deep into directory trees and exit early if we find a
new enough file. An LLVM SVN checkout has a lot of files.
I don't think zsh glob can do this so reimplement in bash+find.
Installing some services and config files doesn't really matter. What
matters is if they are enabled so only use the conditional there. The
rest is easier and less confusing if it just installs the files all the
time. Otherwise we'd need a second task that performs the other case and
then if we change something we'd also have to adjust that task. That's
unnecessarily error prone.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
When using restrictive sudoers profiles, the builtin mechanism for
whitelisting this variable on the sudo command line does not work.
Explicitly whitelist it anyway by matching on the ARCHBUILD role.
Keeps running into timeouts and litters ephemeral unit files.
systemd[1]: dev-loop3.device: Job dev-loop3.device/start timed out.
systemd[1]: Timed out waiting for device /dev/loop3.
systemd[1]: Dependency failed for Swap File.
systemd[1]: dev-loop3.swap: Job dev-loop3.swap/start failed with result 'dependency'.
systemd[1]: dev-loop3.device: Job dev-loop3.device/start failed with result 'timeout'.
systemd[1]: dev-loop2.device: Job dev-loop2.device/start timed out.
systemd[1]: Timed out waiting for device /dev/loop2.
systemd[1]: Dependency failed for Swap File.
systemd[1]: dev-loop2.swap: Job dev-loop2.swap/start failed with result 'dependency'.
systemd[1]: dev-loop2.device: Job dev-loop2.device/start failed with result 'timeout'.
Rather than explicitly listing each command allowed, match any
executable of the form /usr/bin/*-x86_64-build -- this will only ever be
a symlink to archbuild which is all we are looking for.
devtools allows new archbuild configurations to be easily added by
creating a symlink of the form ${config}-${arch}-build and adding the
relevant /usr/share/devtools/pacman-${config}.conf
This change allows the sudoers policy to automatically support these, in
the event that devtools distributes new archbuild configs or a sysadmin
adds a custom one.
This is also done in the next task with a condition that installs it
only when enabled which is correct. This one is wrong so remove it.
Signed-off-by: Florian Pritz <bluewind@xinu.at>