<commit_before>---

# http://serverfault.com/questions/638507/how-to-access-host-variable-of-a-different-host-with-ansible
# We need some facts from the install node, specifically to find address of slurm controller.
- name: grab facts from install nodes
  hosts: production
  tasks: [ ]

- name: Compute Nodes
  hosts: compute
  remote_user: root
  become: yes

  pre_tasks:
    - name: set cron interval for ansible-pull
      cron: name='ansible-pull' user=root
            job='/bin/bash /usr/local/bin/ansible-pull-script.sh >/var/log/ansible.log 2>&1'
            minute="{{ansible_pull_cron_minute_interval | default('0')}}"
            hour="{{ansible_pull_cron_hour_interval | default('*/2')}}"
            day="{{ansible_pull_cron_day_interval | default('*')}}"
            month="{{ansible_pull_cron_month_interval | default('*')}}"
            weekday="{{ansible_pull_cron_weekday_interval | default('*')}}"
            cron_file=ansible-pull
            state={{ansible_pull_cron_state | default('present')}}

  roles: <commit_msg>compute.yml add a tag for the ansible-pull cronjob pre_task<commit_after>---

# http://serverfault.com/questions/638507/how-to-access-host-variable-of-a-different-host-with-ansible
# We need some facts from the install node, specifically to find address of slurm controller.
- name: grab facts from install nodes
  hosts: production
  tasks: [ ]

- name: Compute Nodes
  hosts: compute
  remote_user: root
  become: yes

  pre_tasks:
    - name: set cron interval for ansible-pull
      cron: name='ansible-pull' user=root
            job='/bin/bash /usr/local/bin/ansible-pull-script.sh >/var/log/ansible.log 2>&1'
            minute="{{ansible_pull_cron_minute_interval | default('0')}}"
            hour="{{ansible_pull_cron_hour_interval | default('*/2')}}"
            day="{{ansible_pull_cron_day_interval | default('*')}}"
            month="{{ansible_pull_cron_month_interval | default('*')}}"
            weekday="{{ansible_pull_cron_weekday_interval | default('*')}}"
            cron_file=ansible-pull
            state={{ansible_pull_cron_state | default('present')}}
      tags: pull

  roles: 
{'fraction_non_alphanumeric': 0.13621571362157137, 'fraction_numerical': 0.009298000929800094, 'mean_word_length': 3.312625250501002, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2697389', 'n_tokens_mistral': 709, 'n_tokens_neox': 688, 'n_words': 136}