accounts: create only users who have a certain value for the create key (default: always)

This commit is contained in:
Jérémy Dubois 2023-06-20 11:03:55 +02:00
parent a66e1c1ee9
commit a0139688c6
3 changed files with 7 additions and 1 deletions

View file

@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* post-install: add the pf_states check by default in generateldif.sh script
* nagios-nrpe: allow older cipher suites for older Icinga version
* evobackup: execute canary script before executing backup script
* accounts: create only users who have a certain value for the `create` key (default: `always`)
### Changed

View file

@ -1,2 +1,5 @@
---
evobsd_root_login: "no"
# Defines which groups of users are created
evobsd_users_create: "always"

View file

@ -17,7 +17,9 @@
vars:
user: "{{ item.value }}"
with_dict: "{{ evolix_users }}"
when: evolix_users != {}
when:
- user.create == evobsd_users_create
- evolix_users != {}
tags:
- accounts
- admin