<commit_before>---
# - hosts: test-rhel
#   gather_facts: false
#   remote_user: root
#   roles:
#     - role: layer2_vms
#       tags: [ 'layer2', 'test-rhel', 'vm' ]
#       mode: start
#     - role: layer2_rhel
#       tags: [ 'layer2', 'test-rhel', 'rhel' ]
#       mode: destroy
#     - role: layer2_vms
#       tags: [ 'layer2', 'test-rhel', 'vm' ]
#       mode: destroy

- hosts: dev-client
  gather_facts: false
  remote_user: root
  roles:
    - role: layer2_vms
      tags: [ 'layer2','dev-client', 'ose3', 'vm' ]
      mode: start
    - role: layerX_openshift_demo_redhatmsa_on_devclient
      tags: [ 'layer2','dev-client', 'ose3', 'msademo', 'content' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layerX_ipa_client
      tags: [ 'layer2','dev-client', 'ose3', 'ipa-client','content' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer2_rhel
      tags: [ 'layer2','dev-client', 'ose3', 'rhel' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer2_vms
      tags: [ 'layer2','dev-client', 'ose3', 'vm' ]
      mode: destroy

- hosts: lookbusy-rhev
  gather_facts: false
  remote_user: root
  roles:
    - role: layer3_vm_on_rhev
      tags: [ 'layer3','lookbusy-rhev','lookbusy' ]
      mode: start
    - role: layer2_rhel
      tags: [ 'layer3','lookbusy-rhev','lookbusy', 'rhel' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer3_vm_on_rhev
      tags: [ 'layer3','lookbusy-rhev','lookbusy', 'vm' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true


- hosts: lookbusy-osp
  gather_facts: false
  remote_user: root
  roles:
    - role: layer3_vm_on_openstack
      tags: [ 'layer3','lookbusy-osp','lookbusy' ]
      mode: readfacts
    - role: layer2_rhel
      tags: [ 'layer3','lookbusy-osp','lookbusy', 'rhel' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer3_vm_on_openstack
      tags: [ 'layer3','lookbusy-osp','lookbusy', 'vm' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true


- hosts: efk
  gather_facts: false
  remote_user: root
  roles:
    - role: layer2_vms
      tags: [ 'layer2','efk', 'rhel' ]
      mode: start
    - role: layer2_rhel
      tags: [ 'layer2','efk', 'rhel' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer2_vms
      tags: [ 'layer2','efk', 'vm' ]
      mode: destroy


- hosts: ose3
  gather_facts: false
  remote_user: root
  roles:
    - role: layer2_vms
      tags: [ 'layer2','ose3', 'rhel','ose3-devops', 'ose3-testvm' ]
      mode: start

- hosts: ose3-installer
  remote_user: root
  gather_facts: false
  roles:
    - role: layerX_openshift_demo_monster
      tags: ['ose3-demo','ose3-content', 'content']
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layerX_openshift_demo_wordpress
      tags: ['ose3-demo', 'ose3-content', 'content', 'ose3-demo-wordpress']
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layerX_openshift_devops_tools
      tags: ['ose3-devops', 'ose3-content','content']
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layerX_openshift_installer
      tags: ['ose3-metrics', 'ose3-roles', 'ose3-content', 'content']
      mode: destroy
      when: vm_exists is defined and vm_exists == true

- hosts: ose3
  gather_facts: false
  remote_user: root
  roles:
    - role: layer2_rhel
      tags: [ 'layer2','ose3', 'rhel' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer2_vms
      tags: [ 'layer2','ose3', 'vm' ]
      mode: destroy

- hosts: cloudforms
  gather_facts: false
  remote_user: root
  roles:
    - role: layer3_vm_on_rhev
      tags: [ 'layer3', 'cf' ]
      mode: start
    - role: layer2_rhel
      tags: [ 'layer3', 'cf', 'rhel']
      mode: destroy
    - role: layer3_vm_on_rhev
      tags: [ 'layer3', 'cf' ]
      mode: destroy
    - role: layer3_cloudforms_rhev_template
      tags: [ 'layer3', 'cf', 'cf-template' ]
      mode: destroy

- hosts: rhevm
  remote_user: root
  gather_facts: false
  roles:
    - { role: layer2_rhel_version_switch, tags: [ 'layer2', 'rhev', 'rhel' ], mode: destroy }

- hosts: rhev
  gather_facts: false
  remote_user: root
  roles:
    - role: layer2_vms
      tags: [ 'layer2','rhev', 'rhel' ]
      mode: start

- hosts: rhevm
  remote_user: root
  gather_facts: false
  roles:
    - role: layer2_tdagent
      tags: [ 'layer2', 'rhev', 'tdagent','content' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer2_rhevm_ldap
      tags: [ 'rhevm-ldap','rhev', 'content' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true

- hosts: rhev
  gather_facts: false
  remote_user: root
  roles:
    - role: layer2_rhel
      tags: [ 'layer2','rhev', 'rhel' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer2_vms
      tags: [ 'layer2','rhev', 'vm' ]
      mode: destroy

- hosts: rhosp-director
  gather_facts: false
  remote_user: root
  roles:
    - role: layer2_vms
      tags: [ 'layer2','rhosp', 'rhel' ]
      mode: start
    - role: layer2_rhosp_overcloud_deploy
      tags: [ 'layer2', 'rhosp', 'overcloud' ]
      mode: destroy<commit_msg>check director available also for overcloud teardown<commit_after>---
# - hosts: test-rhel
#   gather_facts: false
#   remote_user: root
#   roles:
#     - role: layer2_vms
#       tags: [ 'layer2', 'test-rhel', 'vm' ]
#       mode: start
#     - role: layer2_rhel
#       tags: [ 'layer2', 'test-rhel', 'rhel' ]
#       mode: destroy
#     - role: layer2_vms
#       tags: [ 'layer2', 'test-rhel', 'vm' ]
#       mode: destroy

- hosts: dev-client
  gather_facts: false
  remote_user: root
  roles:
    - role: layer2_vms
      tags: [ 'layer2','dev-client', 'ose3', 'vm' ]
      mode: start
    - role: layerX_openshift_demo_redhatmsa_on_devclient
      tags: [ 'layer2','dev-client', 'ose3', 'msademo', 'content' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layerX_ipa_client
      tags: [ 'layer2','dev-client', 'ose3', 'ipa-client','content' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer2_rhel
      tags: [ 'layer2','dev-client', 'ose3', 'rhel' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer2_vms
      tags: [ 'layer2','dev-client', 'ose3', 'vm' ]
      mode: destroy

- hosts: lookbusy-rhev
  gather_facts: false
  remote_user: root
  roles:
    - role: layer3_vm_on_rhev
      tags: [ 'layer3','lookbusy-rhev','lookbusy' ]
      mode: start
    - role: layer2_rhel
      tags: [ 'layer3','lookbusy-rhev','lookbusy', 'rhel' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer3_vm_on_rhev
      tags: [ 'layer3','lookbusy-rhev','lookbusy', 'vm' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true


- hosts: lookbusy-osp
  gather_facts: false
  remote_user: root
  roles:
    - role: layer3_vm_on_openstack
      tags: [ 'layer3','lookbusy-osp','lookbusy' ]
      mode: readfacts
    - role: layer2_rhel
      tags: [ 'layer3','lookbusy-osp','lookbusy', 'rhel' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer3_vm_on_openstack
      tags: [ 'layer3','lookbusy-osp','lookbusy', 'vm' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true


- hosts: efk
  gather_facts: false
  remote_user: root
  roles:
    - role: layer2_vms
      tags: [ 'layer2','efk', 'rhel' ]
      mode: start
    - role: layer2_rhel
      tags: [ 'layer2','efk', 'rhel' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer2_vms
      tags: [ 'layer2','efk', 'vm' ]
      mode: destroy


- hosts: ose3
  gather_facts: false
  remote_user: root
  roles:
    - role: layer2_vms
      tags: [ 'layer2','ose3', 'rhel','ose3-devops', 'ose3-testvm' ]
      mode: start

- hosts: ose3-installer
  remote_user: root
  gather_facts: false
  roles:
    - role: layerX_openshift_demo_monster
      tags: ['ose3-demo','ose3-content', 'content']
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layerX_openshift_demo_wordpress
      tags: ['ose3-demo', 'ose3-content', 'content', 'ose3-demo-wordpress']
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layerX_openshift_devops_tools
      tags: ['ose3-devops', 'ose3-content','content']
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layerX_openshift_installer
      tags: ['ose3-metrics', 'ose3-roles', 'ose3-content', 'content']
      mode: destroy
      when: vm_exists is defined and vm_exists == true

- hosts: ose3
  gather_facts: false
  remote_user: root
  roles:
    - role: layer2_rhel
      tags: [ 'layer2','ose3', 'rhel' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer2_vms
      tags: [ 'layer2','ose3', 'vm' ]
      mode: destroy

- hosts: cloudforms
  gather_facts: false
  remote_user: root
  roles:
    - role: layer3_vm_on_rhev
      tags: [ 'layer3', 'cf' ]
      mode: start
    - role: layer2_rhel
      tags: [ 'layer3', 'cf', 'rhel']
      mode: destroy
    - role: layer3_vm_on_rhev
      tags: [ 'layer3', 'cf' ]
      mode: destroy
    - role: layer3_cloudforms_rhev_template
      tags: [ 'layer3', 'cf', 'cf-template' ]
      mode: destroy

- hosts: rhevm
  remote_user: root
  gather_facts: false
  roles:
    - { role: layer2_rhel_version_switch, tags: [ 'layer2', 'rhev', 'rhel' ], mode: destroy }

- hosts: rhev
  gather_facts: false
  remote_user: root
  roles:
    - role: layer2_vms
      tags: [ 'layer2','rhev', 'rhel' ]
      mode: start

- hosts: rhevm
  remote_user: root
  gather_facts: false
  roles:
    - role: layer2_tdagent
      tags: [ 'layer2', 'rhev', 'tdagent','content' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer2_rhevm_ldap
      tags: [ 'rhevm-ldap','rhev', 'content' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true

- hosts: rhev
  gather_facts: false
  remote_user: root
  roles:
    - role: layer2_rhel
      tags: [ 'layer2','rhev', 'rhel' ]
      mode: destroy
      when: vm_exists is defined and vm_exists == true
    - role: layer2_vms
      tags: [ 'layer2','rhev', 'vm' ]
      mode: destroy

- hosts: rhosp-director
  gather_facts: false
  remote_user: root
  roles:
    - role: layer2_vms
      tags: [ 'layer2','rhosp', 'rhel', 'overcloud' ]
      mode: start
    - role: layer2_rhosp_overcloud_deploy
      tags: [ 'layer2', 'rhosp', 'overcloud' ]
      mode: destroy
{'fraction_non_alphanumeric': 0.1319912552377482, 'fraction_numerical': 0.01530333394060849, 'mean_word_length': 2.7191734417344176, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2713894', 'n_tokens_mistral': 4022, 'n_tokens_neox': 3987, 'n_words': 966}