mirror of
https://github.com/eoli3n/dotfiles
synced 2024-06-06 23:06:09 +02:00
added root limit for desktop/laptop
This commit is contained in:
parent
59e90d7e77
commit
455d34d19c
|
@ -24,7 +24,7 @@
|
||||||
## How to
|
## How to
|
||||||
Ansible allows to duplicate this Desktop Environment over multiple hosts with specific configuration (dualscreen, packages...).
|
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 !!!**
|
**!!! 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
|
## Desktop/Laptop Environment
|
||||||
|
|
||||||
|
Don't run as ``root``.
|
||||||
|
|
||||||
### Supported OS
|
### Supported OS
|
||||||
|
|
||||||
- Archlinux
|
- Archlinux
|
||||||
|
@ -97,7 +99,7 @@ To use dark theme, go to graphical configuration and click ``Use GTK+ Theme``
|
||||||
|
|
||||||
## Server Environment
|
## 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
|
### Supported OS
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,11 @@
|
||||||
fail:
|
fail:
|
||||||
msg: "{{ ansible_distribution }} is not supported with this tag."
|
msg: "{{ ansible_distribution }} is not supported with this tag."
|
||||||
when: ansible_distribution != "Archlinux"
|
when: ansible_distribution != "Archlinux"
|
||||||
|
|
||||||
|
- name: Limit to user account
|
||||||
|
fail:
|
||||||
|
msg: "Don't run as root."
|
||||||
|
when: "{{ ansible_user_id }}" == "root"
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- { role: packages-desktop, tags: packages-desktop }
|
- { role: packages-desktop, tags: packages-desktop }
|
||||||
|
|
Loading…
Reference in New Issue