Skip to content

Commit

Permalink
Fix path, and add extra bash good practice flags
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchrisadams committed Feb 13, 2024
1 parent 85d7a9a commit 237bb5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ansible/setup_cronjobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@

- name: Ensure job to run IP hyperscaler importers is present
ansible.builtin.cron:
name: "every Wednesday at 2:30 run our importers"
name: "every Wednesday at 4:30 run our importers"
state: present
weekday: "WED"
hour: "2"
hour: "4"
minute: "30"
user: deploy
job: >
Expand Down
4 changes: 4 additions & 0 deletions ansible/templates/import_ips_for_large_providers.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# {{ ansible_managed }}
# Last run: {{ template_run_date }}

set -euo pipefail

cd {{ project_root }}/current/

python -m pipenv run ./manage.py update_networks_in_db_amazon
python -m pipenv run ./manage.py update_networks_in_db_google
python -m pipenv run ./manage.py update_networks_in_db_microsoft
4 changes: 2 additions & 2 deletions docs/recurring-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ Using
```yaml
- name: Ensure job to run IP hyperscaler importers is present
ansible.builtin.cron:
name: "every Wednesday at 2:30 run our importers"
name: "every Wednesday at 4:30 run our importers"
state: present
weekday: "WED"
hour: "2"
hour: "4"
minute: "30"
user: deploy
job: >
Expand Down

0 comments on commit 237bb5d

Please sign in to comment.