services/mastodon_spacestate: Alter picture
This commit is contained in:
parent
2ebc9f54e6
commit
b6a81cde7e
3 changed files with 17 additions and 0 deletions
|
@ -22,6 +22,18 @@
|
||||||
mode: 0655
|
mode: 0655
|
||||||
notify: restart mastodon-spacestate
|
notify: restart mastodon-spacestate
|
||||||
|
|
||||||
|
- name: Copy profile picture files
|
||||||
|
copy:
|
||||||
|
src: "files/{{ item }}"
|
||||||
|
dest: /var/lib/mastodon-spacestate/{{ item }}
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0655
|
||||||
|
with_items:
|
||||||
|
- closed.png
|
||||||
|
- open.png
|
||||||
|
notify: restart mastodon-spacestate
|
||||||
|
|
||||||
- name: Install service file
|
- name: Install service file
|
||||||
template:
|
template:
|
||||||
src: mastodon-spacestate.service
|
src: mastodon-spacestate.service
|
||||||
|
|
|
@ -12,3 +12,7 @@ closed_profile_field = 'Closed @ {}'
|
||||||
profile_fields = [('Website', 'https://bitlair.nl/')]
|
profile_fields = [('Website', 'https://bitlair.nl/')]
|
||||||
access_token = '{{ mastodon_spacestate_access_token }}'
|
access_token = '{{ mastodon_spacestate_access_token }}'
|
||||||
homeserver = 'https://hsnl.social'
|
homeserver = 'https://hsnl.social'
|
||||||
|
|
||||||
|
update_profilepic_on_spacestate_change = True
|
||||||
|
spacestate_open_profilepic = './open.png'
|
||||||
|
spacestate_closed_profilepic = './closed.png'
|
||||||
|
|
|
@ -8,6 +8,7 @@ After=network.target
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=10s
|
RestartSec=10s
|
||||||
|
WorkingDirectory=/var/lib/mastodon-spacestate
|
||||||
ExecStart=/var/lib/mastodon-spacestate/mastodon-spacestate.py
|
ExecStart=/var/lib/mastodon-spacestate/mastodon-spacestate.py
|
||||||
DynamicUser=true
|
DynamicUser=true
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue