Merge pull request #7 from svc-design/codex/修复ansible-playbook运行错误

Fix GPU demo playbook in check mode
This commit is contained in:
shenlan 2025-06-25 20:22:32 +08:00 committed by GitHub
commit 32c5780080
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
- hosts: all
- hosts: all:!ops-1
become: true
vars:
ops_host: "127.0.0.1"

View File

@ -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