ansible-roles/dnet_user_services_perms/tasks/dnet-other-services-users.yml

9 lines
435 B
YAML

---
# Ignore errors because it fails if the user is already present and used to run a service.
- name: Create users needed to operate services other than the dnet ones
user: name={{ item.user }} comment="{{ item.user }}" home={{ item.home }} createhome={{ item.createhome }} shell={{ item.shell }}
with_items: dnet_other_services_users
when: dnet_other_services_users is defined
ignore_errors: True
tags: [ 'users', 'dnet' ]