include apikey and usage report unique id for syncthing

This commit is contained in:
Pim Kunis 2022-12-20 16:35:43 +01:00
parent 97a654347f
commit cfe9358624
3 changed files with 20 additions and 4 deletions

View file

@ -10,8 +10,8 @@
path: ~/.config/syncthing path: ~/.config/syncthing
state: directory state: directory
- name: Copy Syncthing configuration - name: Copy Syncthing configuration
copy: template:
src: "{{ role_path }}/files/config.xml" src: "{{ role_path }}/templates/config.xml.j2"
dest: ~/.config/syncthing/config.xml dest: ~/.config/syncthing/config.xml
- name: Copy Syncthing private key - name: Copy Syncthing private key
copy: copy:

View file

@ -109,7 +109,7 @@
</device> </device>
<gui enabled="true" tls="false" debugging="false"> <gui enabled="true" tls="false" debugging="false">
<address>127.0.0.1:40465</address> <address>127.0.0.1:40465</address>
<apikey></apikey> <apikey>{{ syncthing.apikey }}</apikey>
<theme>default</theme> <theme>default</theme>
</gui> </gui>
<ldap></ldap> <ldap></ldap>
@ -134,7 +134,7 @@
<natTimeoutSeconds>10</natTimeoutSeconds> <natTimeoutSeconds>10</natTimeoutSeconds>
<urAccepted>3</urAccepted> <urAccepted>3</urAccepted>
<urSeen>3</urSeen> <urSeen>3</urSeen>
<urUniqueID></urUniqueID> <urUniqueID>{{ syncthing.usage_report_unique_id }}</urUniqueID>
<urURL>https://data.syncthing.net/newdata</urURL> <urURL>https://data.syncthing.net/newdata</urURL>
<urPostInsecurely>false</urPostInsecurely> <urPostInsecurely>false</urPostInsecurely>
<urInitialDelayS>1800</urInitialDelayS> <urInitialDelayS>1800</urInitialDelayS>

View file

@ -0,0 +1,16 @@
syncthing:
apikey: !vault |
$ANSIBLE_VAULT;1.1;AES256
63616464333437376436333362353263396536633733656431363563626364346536376331646531
3762666230663933633937303130356238343963323030320a643639353833616666316536326434
65333136656530353062303434633830343765613937386134303463323730666332353439343762
3230356330333565630a336239646134333364383165383662393735306566666662623237663164
35633538303738366538666466626666633431363134633963313739623231363065653936383131
6637636561393762323431303430353661396162393463646636
usage_report_unique_id: !vault |
$ANSIBLE_VAULT;1.1;AES256
65636631303566326435306335663363393362613565326638666336353139376538343631663365
6666643239396464326438353438323033343334363731340a376638633564626563373866353132
30306363303664363233303533653232386264666432303537313630373636613061633237373930
6434346565383833300a316334663965353066633234636564653366326436663163363733616439
6666