Use ansible_facts[] instead of fact variables

See https://github.com/ansible/ansible/issues/73654

Change-Id: I03791a244615238d8c35dea14a81dd6e28e7374d
This commit is contained in:
Jonathan Rosser 2021-03-16 08:27:40 +00:00
parent d077aded47
commit 837b5cee08
1 changed files with 2 additions and 2 deletions

View File

@ -28,5 +28,5 @@ properties: {}
physical_host: localhost
openssh_server_package: "{{ (ansible_pkg_mgr == 'zypper') | ternary('openssh', 'openssh-server') }}"
openssh_server_service: "{{ (ansible_os_family == 'Debian') | ternary('ssh', 'sshd') }}"
openssh_server_package: openssh-server
openssh_server_service: "{{ (ansible_facts['os_family'] == 'Debian') | ternary('ssh', 'sshd') }}"