Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
init
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
init
Commits
e5cf89ae
Commit
e5cf89ae
authored
Oct 20, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "disable sleep"
This reverts commit
99b8f266
.
parent
99b8f266
Pipeline
#932
failed with stage
in 3 minutes and 47 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
31 deletions
+5
-31
tasks/main.yml
tasks/main.yml
+5
-4
tasks/nvidia.yml
tasks/nvidia.yml
+0
-15
tasks/utility.yml
tasks/utility.yml
+0
-12
No files found.
tasks/main.yml
View file @
e5cf89ae
---
---
# tasks file for init
# tasks file for init
-
name
:
utility tasks
-
name
:
main tasks
include_tasks
:
'
utility.yml'
include_tasks
:
'
{{item}}.yml'
-
name
:
sshd_config
with_items
:
include_tasks
:
'
sshd_config.yml'
-
utility
-
sshd_config
-
name
:
detect swap
-
name
:
detect swap
shell
:
'
swapon'
shell
:
'
swapon'
register
:
swap_result
register
:
swap_result
...
...
tasks/nvidia.yml
View file @
e5cf89ae
...
@@ -38,18 +38,3 @@
...
@@ -38,18 +38,3 @@
-
libcudnn7-dev_7.6.5.32-1+cuda10.1_amd64
-
libcudnn7-dev_7.6.5.32-1+cuda10.1_amd64
-
libcudnn7-doc_7.6.5.32-1+cuda10.1_amd64
-
libcudnn7-doc_7.6.5.32-1+cuda10.1_amd64
when
:
not cudnn_result.files[0] is defined and ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int >=
18
when
:
not cudnn_result.files[0] is defined and ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int >=
18
-
name
:
nvidia 重启
become
:
true
shell
:
reboot
async
:
0
poll
:
0
register
:
reboot_result
args
:
removes
:
/var/run/reboot-required
when
:
reboot
-
name
:
nvidia 重启等待
local_action
:
wait_for host={{ ansible_ssh_host }} state=started
when
:
reboot and reboot_result.changed
-
name
:
重新读取主机信息
setup
:
when
:
reboot and reboot_result.changed
tasks/utility.yml
View file @
e5cf89ae
...
@@ -54,18 +54,6 @@
...
@@ -54,18 +54,6 @@
become
:
true
become
:
true
timezone
:
timezone
:
name
:
Asia/Shanghai
name
:
Asia/Shanghai
-
name
:
disable auto sleep
become
:
true
file
:
path
:
'
/etc/systemd/system/{{item}}.target'
state
:
link
src
:
/dev/null
force
:
true
with_items
:
-
sleep
-
suspend
-
hibernate
-
hybrid-sleep
-
name
:
set facts for China mirror
-
name
:
set facts for China mirror
set_fact
:
set_fact
:
mirror_debian
:
http://mirrors.tuna.tsinghua.edu.cn
mirror_debian
:
http://mirrors.tuna.tsinghua.edu.cn
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment