Переглянути джерело

Fix test conditional for RHEL 7.

Jeff Geerling 8 роки тому
батько
коміт
11fa6419e9
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      tasks/init-setup.yml

+ 1 - 1
tasks/init-setup.yml

@@ -17,4 +17,4 @@
 # SEE: https://github.com/ansible/ansible-modules-core/issues/191
 - name: Restart systemctl daemon on systemd systems.
   shell: systemctl daemon-reload
-  when: gogs_file_symlinks.changed and ansible_os_family == "RedHat" and ansible_lsb.major_release|int == 7
+  when: gogs_file_symlinks.changed and (ansible_os_family == "RedHat" and ansible_distribution_major_version|int == 7)