<commit_before>#- name: print ansible_lsb.id result
#  debug: var=ansible_lsb.id
- name: Set proxy to oob-mgmt-server
  lineinfile: dest=/etc/apt/apt.conf.d/69apt-proxy line='Acquire::http::Proxy "http://10.2.0.254:3142";' create=yes
  
- name: copy interfaces
  copy: src=scenario{{s}}/{{ansible_hostname}}/interfaces dest=/etc/network/
  
- name: copy Quagga daemons
  copy: src=scenario{{s}}/{{ansible_hostname}}/daemons dest=/etc/quagga/
  when: '"Cumulus" in ansible_lsb.id'
  
- name: copy Quagga conf
  copy: src=scenario{{s}}/{{ansible_hostname}}/Quagga.conf dest=/etc/quagga/
  when: '"Cumulus" in ansible_lsb.id'

- name: reload networking
  command: ifreload -a
  when: '"Cumulus" in ansible_lsb.id'

- name: reload quagga
  service: name=quagga state=restarted
  when: '"Cumulus" in ansible_lsb.id'

- name: Check if mgmtvrf is installed
  shell: "dpkg-query -f '${binary:Package}\n' -W"
  register: mgmtvrf_installed
  notify: Install mgmtvrf
  when: '"Cumulus" in ansible_lsb.id'  
  
- name: Install mgmtvrf
  apt: name=cl-mgmtvrf update_cache=yes state=present cache_valid_time=86400
  when: "'cl-mgmtvrf' not in mgmtvrf_installed and 'Cumulus' in ansible_lsb.id" 
      
- name: Check if mgmtvrf is installed
  stat: path=/var/lib/cl-mgmtvrf/mgmtvrf.conf
  register: mgmtvrf
  when: '"Cumulus" in ansible_lsb.id'  

- name: Setup Mgmtvrf
  command: cl-mgmtvrf -e
  when: '"Cumulus" in ansible_lsb.id and mgmtvrf.stat.exists == False' 
  
- name: Setup vxrd on Leaf01 and Leaf02
  service: name=vxrd state=started
  when: "'leaf' in ansible_hostname and '1' in s"    <commit_msg>get VXRD working<commit_after>#- name: print ansible_lsb.id result
#  debug: var=ansible_lsb.id
- name: Set proxy to oob-mgmt-server
  lineinfile: dest=/etc/apt/apt.conf.d/69apt-proxy line='Acquire::http::Proxy "http://10.2.0.254:3142";' create=yes
  
- name: copy interfaces
  copy: src=scenario{{s}}/{{ansible_hostname}}/interfaces dest=/etc/network/
  
- name: copy Quagga daemons
  copy: src=scenario{{s}}/{{ansible_hostname}}/daemons dest=/etc/quagga/
  when: '"Cumulus" in ansible_lsb.id'
  
- name: copy Quagga conf
  copy: src=scenario{{s}}/{{ansible_hostname}}/Quagga.conf dest=/etc/quagga/
  when: '"Cumulus" in ansible_lsb.id'

- name: reload networking
  command: ifreload -a
  when: '"Cumulus" in ansible_lsb.id'

- name: reload quagga
  service: name=quagga state=restarted
  when: '"Cumulus" in ansible_lsb.id'

- name: Check if mgmtvrf is installed
  shell: "dpkg-query -f '${binary:Package}\n' -W"
  register: mgmtvrf_installed
  notify: Install mgmtvrf
  when: '"Cumulus" in ansible_lsb.id'  
  
- name: Install mgmtvrf
  apt: name=cl-mgmtvrf update_cache=yes state=present cache_valid_time=86400
  when: "'cl-mgmtvrf' not in mgmtvrf_installed and 'Cumulus' in ansible_lsb.id" 
      
- name: Check if mgmtvrf is installed
  stat: path=/var/lib/cl-mgmtvrf/mgmtvrf.conf
  register: mgmtvrf
  when: '"Cumulus" in ansible_lsb.id'  

- name: Setup Mgmtvrf
  command: cl-mgmtvrf -e
  when: '"Cumulus" in ansible_lsb.id and mgmtvrf.stat.exists == False' 

- name: turn on LNV registration node daemon
  lineinfile: dest=/etc/default/vxrd regexp=^START= line=START=yes
  notify: restart vxrd  
  when: "'leaf' in ansible_hostname and '1' in s"    
  
- name: Setup vxrd on Leaf01 and Leaf02
  service: name=vxrd state=started
  when: "'leaf' in ansible_hostname and '1' in s"    
{'fraction_non_alphanumeric': 0.13234859675036928, 'fraction_numerical': 0.013884785819793206, 'mean_word_length': 4.091729323308271, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5612480', 'n_tokens_mistral': 1404, 'n_tokens_neox': 1342, 'n_words': 318}