<commit_before>---
#- name: First add users to admin node as root
#  hosts: admin
#  remote_user: root

#  roles: 
#  - { role: ansible-role-users, tags: [ 'users', 'admin-users', 'user' ] }

- name:  Configure Admin Node
  hosts: ohpc_admin_nodes
  become: yes

  roles:
#  - { role: watermark-release, tags: [ 'always' ] } 
  - { role: ansible-role-fgci-repo, tags: [ 'fgci7', 'repos' ] }
  - { role: dns, tags: [ 'dns' ] }
  - { role: ansible-role-yum, tags: [ 'yum', 'repos' ] }
  - { role: ansible-role-ohpc-repo, tags: [ 'yum', 'repos', 'ohpc' ] }
  - { role: network_interface, tags: [ 'network' ],
    when: internal_interface in ansible_interfaces and
          external_interface in ansible_interfaces }
  - { role: ip_forwarder, tags: [ 'network' ],
    when: internal_interface is defined and
          external_interface is defined and
          internal_net is defined and
          internal_interface in ansible_interfaces and
          external_interface in ansible_interfaces }
  - { role: ansible-role-ferm-firewall, tags: [ 'firewall', 'network' ] }
  - { role: ansible-role-chrony, tags: [ 'ntp', 'chrony' ] }
  - { role: ansible-role-yum-cron-2, tags: [ 'yumcron' ] }
  - { role: ansible-role-rsyslog, tags: [ 'rsyslog' ] }
  - { role: ansible-role-aliases, tags: [ 'aliases', 'email' ] }
  - { role: ansible-role-sshd, tags: [ 'sshd', 'ssh' ] }
  - { role: ansible-role-smartd, tags: [ 'smartd' ] }
  - { role: ansible-role-dell, tags: [ 'dell' ] }
  - { role: ansible-role-rdma, tags: [ 'rdma', 'infiniband' ] }
  - { role: ansible-role-postfix, tags: [ 'postfix', 'mail' ] }
  - { role: ansible-role-autofs, tags: [ 'autofs' ] }
#  - { role: ansible-role-pdsh-genders, tags: [ 'pdsh', 'genders' ] }
  - { role: ansible-role-systemd-journal, tags: [ 'systemd', 'journal', 'journald' ] }
  - { role: ansible-role-slurm, tags: [ 'slurm' ] }
#  - { role: ansible-role-flowdock, tags: [ 'flowdock', 'always' ] }
  - { role: ansible-role-ohpc-setup, tags: [ 'ohpc', 'always' ] }


# Local addons to this playbook
#
- import_playbook: admin_local_play.yml
                                      <commit_msg>Don't run admin_local_play from admin_ohpc<commit_after>---
#- name: First add users to admin node as root
#  hosts: admin
#  remote_user: root

#  roles: 
#  - { role: ansible-role-users, tags: [ 'users', 'admin-users', 'user' ] }

- name:  Configure Admin Node
  hosts: ohpc_admin_nodes
  become: yes

  roles:
#  - { role: watermark-release, tags: [ 'always' ] } 
  - { role: ansible-role-fgci-repo, tags: [ 'fgci7', 'repos' ] }
  - { role: dns, tags: [ 'dns' ] }
  - { role: ansible-role-yum, tags: [ 'yum', 'repos' ] }
  - { role: ansible-role-ohpc-repo, tags: [ 'yum', 'repos', 'ohpc' ] }
  - { role: network_interface, tags: [ 'network' ],
    when: internal_interface in ansible_interfaces and
          external_interface in ansible_interfaces }
  - { role: ip_forwarder, tags: [ 'network' ],
    when: internal_interface is defined and
          external_interface is defined and
          internal_net is defined and
          internal_interface in ansible_interfaces and
          external_interface in ansible_interfaces }
  - { role: ansible-role-ferm-firewall, tags: [ 'firewall', 'network' ] }
  - { role: ansible-role-chrony, tags: [ 'ntp', 'chrony' ] }
  - { role: ansible-role-yum-cron-2, tags: [ 'yumcron' ] }
  - { role: ansible-role-rsyslog, tags: [ 'rsyslog' ] }
  - { role: ansible-role-aliases, tags: [ 'aliases', 'email' ] }
  - { role: ansible-role-sshd, tags: [ 'sshd', 'ssh' ] }
  - { role: ansible-role-smartd, tags: [ 'smartd' ] }
  - { role: ansible-role-dell, tags: [ 'dell' ] }
  - { role: ansible-role-rdma, tags: [ 'rdma', 'infiniband' ] }
  - { role: ansible-role-postfix, tags: [ 'postfix', 'mail' ] }
  - { role: ansible-role-autofs, tags: [ 'autofs' ] }
#  - { role: ansible-role-pdsh-genders, tags: [ 'pdsh', 'genders' ] }
  - { role: ansible-role-systemd-journal, tags: [ 'systemd', 'journal', 'journald' ] }
  - { role: ansible-role-slurm, tags: [ 'slurm' ] }
#  - { role: ansible-role-flowdock, tags: [ 'flowdock', 'always' ] }
  - { role: ansible-role-ohpc-setup, tags: [ 'ohpc', 'always' ] }


# Local addons to this playbook
#
#- import_playbook: admin_local_play.yml
                                      
{'fraction_non_alphanumeric': 0.1753975678203929, 'fraction_numerical': 0.0009354536950420954, 'mean_word_length': 2.9274563820018367, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6667135', 'n_tokens_mistral': 1631, 'n_tokens_neox': 1611, 'n_words': 348}