Merge pull request #7 from svc-design/codex/修复ansible-playbook运行错误
Fix GPU demo playbook in check mode
This commit is contained in:
commit
32c5780080
@ -1,4 +1,4 @@
|
||||
- hosts: all
|
||||
- hosts: all:!ops-1
|
||||
become: true
|
||||
vars:
|
||||
ops_host: "127.0.0.1"
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
args:
|
||||
executable: /bin/bash
|
||||
become: true
|
||||
when: not ansible_check_mode
|
||||
|
||||
- name: Install NVIDIA driver and container runtime
|
||||
apt:
|
||||
@ -19,3 +20,4 @@
|
||||
state: present
|
||||
update_cache: yes
|
||||
become: true
|
||||
when: not ansible_check_mode
|
||||
|
||||
Loading…
Reference in New Issue
Block a user