1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_collection_users.git synced 2024-08-16 10:29:50 +02:00

Merge pull request #15 from roles-ansible/comment

Adding comment to user
This commit is contained in:
L3D 2024-04-24 22:09:36 +02:00 committed by GitHub
commit a3e7605603
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 5 deletions

View file

@ -20,7 +20,7 @@ And it is also possible to delete users.
## Using this Collection
You can install the collection using ansible-galaxy by running:
```bash
ansible-galaxy collection install l3d.users:1.1.1
ansible-galaxy collection install l3d.users:1.1.2
```
Remember you can to Upgrade to the latest version of the l3d.git collection using the ``--upgrade`` parameter:
@ -45,7 +45,7 @@ You can also list a collection in ``requirements.yml``:
---
collections:
- name: l3d.users
version: ">=1.1.1"
version: ">=1.1.2"
```
Global Variables:

View file

@ -9,7 +9,7 @@ namespace: l3d
name: users
# The version of the collection. Must be compatible with semantic versioning
version: 1.1.1
version: 1.1.2
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md

View file

@ -18,6 +18,7 @@ The Option of these directory-variables are the following.
| option | values | required | description |
| ------ | ------ | --- | --- |
| ``name`` | *string* | ``required`` | The user you want to create |
| ``comment`` | *Full Name* | - | Optionally add Full Name |
| ``state`` | ``present`` | - | Create or delete user |
| ``shell`` | ``/bin/bash`` | - | The Shell of the User |
| ``create_home`` | ``true`` | - | create a user home *(needed to store ssh keys)* |

View file

@ -19,7 +19,7 @@
state: 'present'
create_home: "{{ user.create_home | default(true) }}"
home: "{{ user.home | default('/home/' + user.name) }}"
comment: "{{ user.name }}"
comment: "{{ user.comment | default(user.name) }}"
shell: "{{ user.shell | default('/bin/bash') }}"
password: "{{ user.password | default() }}"
loop: "{{ _l3d_users__merged_users }}"

View file

@ -1,3 +1,3 @@
---
playbook_version_number: 14
playbook_version_number: 15
playbook_version_path: 'l3d.users.user.version'