diff options
| author | Maximilian Möhring | 2024-09-19 10:11:29 +0200 |
|---|---|---|
| committer | Maximilian Möhring | 2024-09-19 10:11:29 +0200 |
| commit | 34751fc24764a1c06b9606e75a730feefc891777 (patch) | |
| tree | 1722ba8c0fb7c12c6b144943ce7ca7cc09671ab1 /roles/ghrss/tasks | |
| parent | 3cb036326c632875d2417004d4d5f070eb620da9 (diff) | |
| parent | e39b8cdfbc2e76b645bb0e7d8919d665435f0a3e (diff) | |
| download | ansible-34751fc24764a1c06b9606e75a730feefc891777.tar.gz | |
merged
Diffstat (limited to 'roles/ghrss/tasks')
| -rw-r--r-- | roles/ghrss/tasks/main.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/roles/ghrss/tasks/main.yml b/roles/ghrss/tasks/main.yml new file mode 100644 index 0000000..04caaf8 --- /dev/null +++ b/roles/ghrss/tasks/main.yml @@ -0,0 +1,46 @@ +- name: git clone ghrss-crawler + remote_user: horus + git: + repo: git@git.iamfabulous.de:ghrss + dest: /home/horus/code/ghrss + accept_hostkey: yes + +#- name: go mod init +# remote_user: horus +# ansible.builtin.shell: go mod init ghrss +# args: +# chdir: /home/horus/code/ghrss + +- name: get go dependencies to build + remote_user: horus + ansible.builtin.shell: go mod tidy + args: + chdir: /home/horus/code/ghrss + +- name: compile ghrss-crawler (make build) + remote_user: horus + ansible.builtin.shell: make build + args: + chdir: /home/horus/code/ghrss + +- name: set cronjob for ghrss-crawler + ansible.builtin.cron: + name: "crawlt Github #1" + minute: "50" + hour: "12" + user: "horus" + job: "/home/horus/code/ghrss/ghrss --config=/home/horus/code/ghrss/ --ignore-robots-txt --delay 10" + +- name: set cronjob for ghrss-crawler + ansible.builtin.cron: + name: "crawlt Github #2" + minute: "50" + hour: "23" + user: "horus" + job: "/home/horus/code/ghrss/ghrss --config=/home/horus/code/ghrss/ --ignore-robots-txt --delay 10" + +- name: copy config.json + remote_user: horus + copy: + src: config.json + dest: /home/horus/code/ghrss/config.json |
