소스 검색

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)