|
|
@@ -17,10 +17,10 @@ bindpwd - from group variables
|
|
|
|
file : default account.csv csv file containing user to create:
|
|
|
|
file : default account.csv csv file containing user to create:
|
|
|
|
|
|
|
|
|
|
|
|
```csv
|
|
|
|
```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 !
|
|
|
|
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:
|
|
|
|
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 <<EOF> account.csv
|
|
|
|
|
|
|
|
org,firstname,lastname,email,password
|
|
|
|
|
|
|
|
plop,thom,foobar,thom@plope.fr,
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
- hosts: collidine
|
|
|
|
- hosts: collidine
|
|
|
|
user: tom
|
|
|
|
user: tom
|
|
|
|
become: false
|
|
|
|
become: false
|
|
|
|
roles:
|
|
|
|
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
|
|
|
|
License
|
|
|
|
-------
|
|
|
|
-------
|
|
|
|