Explorar el Código

Fix test conditional for RHEL 7.

Jeff Geerling hace 8 años
padre
commit
11fa6419e9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)