Skip to content

Commit

Permalink
CI Localenv -> Set current date on edge hosts.
Browse files Browse the repository at this point in the history
Not all edge hosts will have NTP, so the date on the executing machine is likely more accurate.
  • Loading branch information
mbfm committed Jan 28, 2025
1 parent 1d137ed commit 2a3b49d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .ci/deploy/localenv/ansible/playbook-edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,19 @@
aarch64: "aarch64-unknown-linux-gnu"
edgar_download: "/tmp/opendut/edgar.tar.gz"
tasks:
- name: Determine current date
delegate_to: "localhost" # Assume localhost has a more accurate time than the edge hosts
ansible.builtin.command: "date --rfc-3339=seconds"
register: date_output
changed_when: false

- name: Set current date
ansible.builtin.command: "date --set='{{ date_output.stdout }}'"

- name: Determine CPU architecture
ansible.builtin.command: "uname --machine"
register: uname_output
changed_when: false

- name: Download EDGAR archive
ansible.builtin.get_url:
Expand Down

0 comments on commit 2a3b49d

Please sign in to comment.