<commit_before>---

- name: create {{ dyndns_dest }} if not exists
  file:
    path: "{{ dyndns_dest }}"
    state: directory

- name: download for x86_64
  get_url:
    url: "{{ dyndns_release_baseurl }}/{{dyndns_latest_release}}/dyndns-{{dyndns_latest_release}}-linux-amd64"
    dest: "{{ dyndns_dest }}/dyndns"
    mode: "700"
  when: ansible_architecture == "x86_64"

- name: download for armv6
  get_url:
    url: "{{ dyndns_release_baseurl }}/{{dyndns_latest_release}}/dyndns-{{dyndns_latest_release}}-linux-arm"
    dest: "{{ dyndns_dest }}/dyndns"
    mode: "700"
  when: '"armv6" in ansible_architecture'

- name: download for arm7
  get_url:
    url: "{{ dyndns_release_baseurl }}/{{dyndns_latest_release}}/dyndns-{{dyndns_latest_release}}-linux-arm64"
    dest: "{{ dyndns_dest }}/dyndns"
    mode: "700"
  when: '"armv7" in ansible_architecture'

- name: "cron : set DISCORD_WEBHOOK_URL env var"
  ansible.builtin.cron:
    name: DISCORD_WEBHOOK_URL
    env: yes
    job: '{{ lookup("env", "DISCORD_WEBHOOK_URL") }}'
    user: '{{ ansible_user }}'
  no_log: true

- name: "cron : set GANDI_TOKEN env var"
  ansible.builtin.cron:<commit_msg>use "cron" instead "ansible.builin.cron" to support ansible 2.5<commit_after>---

- name: create {{ dyndns_dest }} if not exists
  file:
    path: "{{ dyndns_dest }}"
    state: directory

- name: download for x86_64
  get_url:
    url: "{{ dyndns_release_baseurl }}/{{dyndns_latest_release}}/dyndns-{{dyndns_latest_release}}-linux-amd64"
    dest: "{{ dyndns_dest }}/dyndns"
    mode: "700"
  when: ansible_architecture == "x86_64"

- name: download for armv6
  get_url:
    url: "{{ dyndns_release_baseurl }}/{{dyndns_latest_release}}/dyndns-{{dyndns_latest_release}}-linux-arm"
    dest: "{{ dyndns_dest }}/dyndns"
    mode: "700"
  when: '"armv6" in ansible_architecture'

- name: download for arm7
  get_url:
    url: "{{ dyndns_release_baseurl }}/{{dyndns_latest_release}}/dyndns-{{dyndns_latest_release}}-linux-arm64"
    dest: "{{ dyndns_dest }}/dyndns"
    mode: "700"
  when: '"armv7" in ansible_architecture'

- name: "cron : set DISCORD_WEBHOOK_URL env var"
  cron:
    name: DISCORD_WEBHOOK_URL
    env: yes
    job: '{{ lookup("env", "DISCORD_WEBHOOK_URL") }}'
    user: '{{ ansible_user }}'
  no_log: true

- name: "cron : set GANDI_TOKEN env var"
  cron:
{'fraction_non_alphanumeric': 0.15460809646856158, 'fraction_numerical': 0.02239448751076658, 'mean_word_length': 4.061002178649238, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3205154', 'n_tokens_mistral': 989, 'n_tokens_neox': 942, 'n_words': 180}