Skip to content

Commit e026d37

Browse files
ansible_check_modeの場合には処理をスキップするよう修正
1 parent 4163ae9 commit e026d37

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tasks/debian.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@
3434
install_recommends: no
3535
update_cache: "{{ 'yes' if not ansible_check_mode | bool else 'no' }}"
3636
when:
37-
not ansible_check_mode or
38-
nvidia_driver_repo == "ubuntu" or
39-
not nvidia_driver_ppa_apt_repo.changed|default(true) or
40-
not nvidia_repo_cuda_apt_repo.changed|default(true)
37+
not ansible_check_mode and
38+
(
39+
nvidia_driver_repo == "ubuntu" or
40+
not nvidia_driver_ppa_apt_repo.changed|default(true) or
41+
not nvidia_repo_cuda_apt_repo.changed|default(true)
42+
)
4143

4244
vars:
4345
nvidia_driver_packages:

0 commit comments

Comments
 (0)