fgci-org / fgci-ansible

:microscope: Collection of the Finnish Grid and Cloud Infrastructure Ansible playbooks
MIT License
54 stars 18 forks source link

change always_run to check_mode - ansible 2.4 compatibility #168

Closed martbhell closed 5 years ago

martbhell commented 8 years ago

Many roles have commands which only check something - there we have set always_run: True. This should be changed to check_mode. True for the role to be compatible with ansible 2.4. Using check_mode makes the roles incompatible with ansible 2.1 which doesn't have the check_mode. I think we should wait with updating the roles to use check_mode until 2.3 is out.

Example:

TASK [ansible-role-cuda : check if cuda_gpu_name0 ( /dev/nvidia0 ) exists] *****
Tuesday 08 November 2016  08:00:50 +0200 (0:00:00.037)       0:00:29.708 ****** 
[DEPRECATION WARNING]: always_run is deprecated. Use check_mode = no instead..

Current roles: