This repository has been archived by the owner on Mar 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Centralize root check, user ansible var, not env var
fixes #17 - the current check logic was failing under docker which doesnt always inject a `USER` environment variable. Rather than try to work around that in docker, lets update our root check logic to be more universally compatible.
- Loading branch information
Showing
4 changed files
with
15 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
- name: Run setup as same user as role | ||
setup: | ||
|
||
- name: Stop if running with elevated privileges. | ||
fail: | ||
msg: >- | ||
WARNING! You should not compile the Linux kernel with | ||
superuser privileges. Doing so may create an unbootable | ||
system. See Greg Kroah-Hartman's Linux Kernel in a Nutshell | ||
for anecdotes about how doing so has broken systems | ||
in the past: http://www.kroah.com/lkn/ | ||
when: ansible_user_id == 'root' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
--- | ||
- include: become_check.yml | ||
|
||
- include: main-stable.yml | ||
when: grsecurity_build_patch_type != 'unofficial' | ||
|
||
|