1
0
Fork 0
mirror of https://github.com/eoli3n/dotfiles synced 2024-05-13 11:06:05 +02:00

added root limit for desktop/laptop

This commit is contained in:
eoli3n 2017-12-29 03:06:47 +01:00
parent 59e90d7e77
commit 455d34d19c
2 changed files with 9 additions and 2 deletions

View File

@ -24,7 +24,7 @@
## How to
Ansible allows to duplicate this Desktop Environment over multiple hosts with specific configuration (dualscreen, packages...).
Fork Me! Please look at ``roles/*/README.md`` if exists for specific hosts configuration.
**Fork Me!** Please look at ``roles/*/README.md`` if exists for specific hosts configuration.
**!!! Use as is, you will add my SSH key in your authorized_keys !!!**
@ -39,6 +39,8 @@ Please check ``vagrant/*/README.md`` and ``docker/*/README.md``
## Desktop/Laptop Environment
Don't run as ``root``.
### Supported OS
- Archlinux
@ -97,7 +99,7 @@ To use dark theme, go to graphical configuration and click ``Use GTK+ Theme``
## Server Environment
``server`` tag limits to install/configure cli tools.
``server`` tag limits to install/configure cli tools. It could be run as ``root``.
### Supported OS

View File

@ -27,6 +27,11 @@
fail:
msg: "{{ ansible_distribution }} is not supported with this tag."
when: ansible_distribution != "Archlinux"
- name: Limit to user account
fail:
msg: "Don't run as root."
when: "{{ ansible_user_id }}" == "root"
roles:
- { role: packages-desktop, tags: packages-desktop }