Generation d'un 2eme fichier par compte, sans . dans l'identifiant
This commit is contained in:
parent
c5e1d1f471
commit
d97c9c9ab1
2 changed files with 18 additions and 5 deletions
|
@ -20,7 +20,7 @@
|
|||
- debug:
|
||||
var: ldap_users.results
|
||||
|
||||
- name: creation entree webfinger depuis template
|
||||
- name: creation entree webfinger depuis template - id normal
|
||||
template:
|
||||
src: user-template.json
|
||||
dest: "{{ docker_webfingerserver_data_dir }}/{{ docker_webfingerserver_service_id }}/webfinger/.well-known/webfinger/store/{{ docker_webfingerserver_local_domain }}/{{ item.uid }}.json"
|
||||
|
@ -28,3 +28,16 @@
|
|||
- "{{ ldap_users.results }}"
|
||||
vars:
|
||||
user: "{{ item }}"
|
||||
acct: "{{ item.mail }}"
|
||||
|
||||
- name: creation entree webfinger depuis template - id sans point
|
||||
template:
|
||||
src: user-template.json
|
||||
dest: "{{ docker_webfingerserver_data_dir }}/{{ docker_webfingerserver_service_id }}/webfinger/.well-known/webfinger/store/{{ docker_webfingerserver_local_domain }}/{{ item.uid | replace('.', '') }}.json"
|
||||
with_items:
|
||||
- "{{ ldap_users.results }}"
|
||||
vars:
|
||||
user: "{{ item }}"
|
||||
acct: "{{ item.uid | replace('.', '') }}@{{ item.mail | split('@') | last }}"
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"subject" : "acct:{{ user.mail }}",
|
||||
"subject" : "acct:{{ acct }}",
|
||||
"properties" :
|
||||
{
|
||||
"http://packetizer.com/ns/name" : "{{ user.displayName }}"
|
||||
|
@ -7,19 +7,19 @@
|
|||
"aliases" :
|
||||
[
|
||||
|
||||
"https://mastodon.libretic.fr/users/{{ user.uid }}"
|
||||
"https://mastodon.libretic.fr/users/{{ user.uid | replace('.', '') }}"
|
||||
],
|
||||
"links" :
|
||||
[
|
||||
{
|
||||
"rel" : "http://webfinger.net/rel/profile-page",
|
||||
"type": "text/html",
|
||||
"href": "https://mastodon.libretic.fr/@{{ user.uid }}"
|
||||
"href": "https://mastodon.libretic.fr/@{{ user.uid | replace('.', '') }}"
|
||||
},
|
||||
{
|
||||
"rel": "self",
|
||||
"type": "application/activity+json",
|
||||
"href": "https://mastodon.libretic.fr/users/{{ user.uid }}"
|
||||
"href": "https://mastodon.libretic.fr/users/{{ user.uid | replace('.', '') }}"
|
||||
},
|
||||
{
|
||||
"rel": "http://ostatus.org/schema/1.0/subscribe",
|
||||
|
|
Loading…
Reference in a new issue