fix playbook check mode

This commit is contained in:
shenlan 2025-06-25 20:17:12 +08:00
parent 071bb43821
commit 9363c0eded
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