Преглед на файлове

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)