Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible_cluster_in_a_box
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chris Hines
ansible_cluster_in_a_box
Commits
c19e7e46
Commit
c19e7e46
authored
10 years ago
by
Jupiter Hu
Browse files
Options
Downloads
Patches
Plain Diff
update
parent
8b5679b3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/gpu/tasks/main.yml
+11
-19
11 additions, 19 deletions
roles/gpu/tasks/main.yml
with
11 additions
and
19 deletions
roles/gpu/tasks/main.yml
+
11
−
19
View file @
c19e7e46
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
-
xorg-x11-xauth
-
xorg-x11-xauth
-
xorg-x11-proto-devel
-
xorg-x11-proto-devel
-
xorg-x11-xkb-utils
-
xorg-x11-xkb-utils
# run_once: true
-
name
:
Add nouveau from blacklist
-
name
:
Add nouveau from blacklist
lineinfile
:
lineinfile
:
...
@@ -44,8 +43,6 @@
...
@@ -44,8 +43,6 @@
-
name
:
check nvidia driver
-
name
:
check nvidia driver
shell
:
ls /usr/lib64/libnvidia-opencl.so.{{ nvidia_version }}
shell
:
ls /usr/lib64/libnvidia-opencl.so.{{ nvidia_version }}
# shell: ls /usr/lib64/nvidia
# shell: ls /tmp/NVIDIA-Linux-x86_64-{{ nvidia_version }}.run
register
:
has_been_compiled
register
:
has_been_compiled
ignore_errors
:
true
ignore_errors
:
true
...
@@ -61,34 +58,29 @@
...
@@ -61,34 +58,29 @@
template
:
src=xserver.j2 dest=/etc/pam.d/xserver
template
:
src=xserver.j2 dest=/etc/pam.d/xserver
sudo
:
true
sudo
:
true
#
- name: restart_host
-
name
:
restart_host
#
command: shutdown -r now "Reboot triggered by Ansible"
command
:
shutdown -r now "Reboot triggered by Ansible"
#
async: 0
async
:
0
#
poll: 0
poll
:
0
#
sudo: true
sudo
:
true
#
ignore_errors: true
ignore_errors
:
true
#
when: has_been_compiled | failed
when
:
has_been_compiled | failed
#- name: wait_restart
-
name
:
wait_restart
# local_action: wait_for host="{{ inventory_hostname }}" port=22
local_action
:
wait_for host="{{ inventory_hostname }}" port=22 delay=5 timeout=600
## local_action: wait_for host="{{ inventory_hostname }}" port=22 delay=5 timeout=600
sudo
:
true
## local_action: wait_for host="{{ inventory_hostname }}" port=22 delay=5 search_regex=OpenSSH timeout=3600 state=started
when
:
has_been_compiled | failed
# sudo: false
## sudo: true
# when: has_been_compiled | failed
-
name
:
get nvidia driver
-
name
:
get nvidia driver
shell
:
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/{{ nvidia_version }}/NVIDIA-Linux-x86_64-{{ nvidia_version }}.run
shell
:
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/{{ nvidia_version }}/NVIDIA-Linux-x86_64-{{ nvidia_version }}.run
args
:
args
:
chdir
:
/tmp
chdir
:
/tmp
creates
:
/tmp/NVIDIA-Linux-x86_64-{{ nvidia_version }}.run
creates
:
/tmp/NVIDIA-Linux-x86_64-{{ nvidia_version }}.run
# run_once: true
sudo
:
true
sudo
:
true
when
:
has_been_compiled | failed
when
:
has_been_compiled | failed
-
name
:
build nvidia driver
-
name
:
build nvidia driver
shell
:
chmod 755 /tmp/NVIDIA-Linux-x86_64-{{ nvidia_version }}.run; /tmp/NVIDIA-Linux-x86_64-{{ nvidia_version }}.run --silent --kernel-source-path /usr/src/kernels/{{ kernel_version }}.el6.x86_64
shell
:
chmod 755 /tmp/NVIDIA-Linux-x86_64-{{ nvidia_version }}.run; /tmp/NVIDIA-Linux-x86_64-{{ nvidia_version }}.run --silent --kernel-source-path /usr/src/kernels/{{ kernel_version }}.el6.x86_64
# shell: chmod 755 /tmp/NVIDIA-Linux-x86_64-{{ nvidia_version }}.run; /tmp/NVIDIA-Linux-x86_64-{{ nvidia_version }}.run --silent --kernel-source-path /usr/src/kernels/{{ kernel_version }}.el6.x86_64
sudo
:
true
sudo
:
true
when
:
has_been_compiled | failed
when
:
has_been_compiled | failed
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment