role/profile dir: use ternary instead of task

This commit is contained in:
Josh Lay 2024-08-11 06:24:54 -05:00
parent 369385b192
commit fdb8a3c6a1
No known key found for this signature in database
GPG key ID: 47AA304B2243B579
2 changed files with 1 additions and 6 deletions

View file

@ -11,4 +11,4 @@ amdgpu_profiles:
- overclock
- peak
tuned_amdgpu_profile_dir: '/etc/tuned/profiles' # introduced in '2.23.0-1'
tuned_amdgpu_profile_dir: "{{ '/etc/tuned' if ansible_facts['packages']['tuned'][0]['version'] is version('2.23.0', '<') else '/etc/tuned/profiles' }}"