0
0
opnxng-deploy-playbook/setups/setup-nitter.yml
2023-11-06 10:39:27 +08:00

40 lines
1.1 KiB
YAML

- name: Generate JWT Secret
command: openssl rand -hex 32
register: nitter_jwt_secret_result
- set_fact:
nitter_jwt_secret: "{{ nitter_jwt_secret_result.stdout }}"
- name: Set up nitter conf
template:
src: "conf/nitter.conf.j2"
dest: "{{ docker_dir }}/nitter/nitter.conf"
owner: 1000
group: 1000
mode: 0755
- name: Copy about.md
copy:
src: "nitter/about.md"
dest: "{{ docker_dir }}/nitter/about.md"
owner: 1000
group: 1000
mode: 0755
- name: Copy about.html
copy:
src: "nitter/about.html"
dest: "{{ docker_dir }}/nitter/about.html"
owner: 1000
group: 1000
mode: 0755
- name: Curl guest_accounts.jsonl
shell: curl -s '{{ twitterminator_url }}' > {{ docker_dir }}/nitter/guest_accounts.jsonl
ignore_errors: true
- name: Chmod guest_accounts.jsonl
command: chmod 0777 {{ docker_dir }}/nitter/guest_accounts.jsonl
- name: Chown guest_accounts.jsonl
command: chown 1000:1000 {{ docker_dir }}/nitter/guest_accounts.jsonl