123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- ---
- - name: Create a custom fact directory on each host
- file:
- path: "{{ custom_fact_dir }}"
- state: directory
- mode: "{{ custom_fact_dir_mode }}"
- - name: Install accelerator discovery script
- copy:
- src: inventory.fact
- dest: "{{ accelerator_discovery_script_dest }}"
- owner: root
- group: root
- mode: "{{ accelerator_discovery_script_mode }}"
- - name: Add elrepo GPG key
- rpm_key:
- state: present
- key: "{{ elrepo_gpg_key_url }}"
- tags: install
- - name: Add elrepo (nvidia kmod drivers)
- package:
- name: "{{ elrepo_rpm_url }}"
- state: present
- tags: install
- - name: Add docker community edition repository
- get_url:
- url: "{{ docker_repo_url }}"
- dest: "{{ docker_repo_dest }}"
- tags: install
- - name: Permanently Disable swap
- mount:
- name: "swap"
- fstype: swap
- state: absent
- - name: Disable selinux
- selinux:
- state: disabled
- tags: install
- - name: Install common packages
- package:
- name: "{{ common_packages }}"
- state: present
- tags: install
- - name: Collect host facts (including acclerator information)
- setup: ~
- - name: Install infiniBand support
- package:
- name: "@Infiniband Support"
- state: present
- tags: install
- - name: Deploy time ntp/chrony
- include_tasks: ntp.yml
- tags: install
- - name: Install Nvidia drivers and software components
- include_tasks: nvidia.yml
- when: ansible_local.inventory.nvidia_gpu > 0
- tags: install
- - name: Install AMD GPU drivers and software components
- include_tasks: amd.yml
- when: ansible_local.inventory.amd_gpu > 0
- tags: install
|