From e34712e2d5e642719d7f821dd0df449dba2204aa Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Wed, 20 Mar 2024 10:41:26 +0100 Subject: [PATCH] add example, test passwordless account --- README.md | 15 ++++++++++++--- account.csv | 2 ++ nlu.yml | 9 +++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 account.csv create mode 100644 nlu.yml diff --git a/README.md b/README.md index a8baadc..5d9ca80 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,10 @@ bindpwd - from group variables file : default account.csv csv file containing user to create: ```csv -firstname,lastname,email,[password] +org,firstname,lastname,email,[password] ``` -password field optionnal - if empty will be generated automatically - WIP +password field optionnal - if empty will be generated automatically keep the final comma, though ! @@ -34,11 +34,20 @@ Example Playbook Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: +```bash +cat < account.csv +org,firstname,lastname,email,password +plop,thom,foobar,thom@plope.fr, +EOF +``` + - hosts: collidine user: tom become: false roles: - - { role: tco.new_ldap_user, org=plop.fr,file: ~/Documents/Opendoor/Clients/Plop/account.csv } + - role: tco.new_ldap_user, + org: plop.fr + file: ~/Document/Opendoor/Clients/Plop/account.csv License ------- diff --git a/account.csv b/account.csv new file mode 100644 index 0000000..817e36d --- /dev/null +++ b/account.csv @@ -0,0 +1,2 @@ +org,firstname,lastname,email,password +plop,thom,foobar,thom@plope.fr, diff --git a/nlu.yml b/nlu.yml new file mode 100644 index 0000000..8a1755b --- /dev/null +++ b/nlu.yml @@ -0,0 +1,9 @@ +--- +- hosts: collidine + user: tom + become: false + roles: + - role: tco.new_ldap_user + org: plop.fr + file: account.csv +