Generic OS name
This commit is contained in:
@@ -111,10 +111,10 @@
|
||||
notify:
|
||||
- Reload initctl
|
||||
- Restart mineos
|
||||
when: ansible_distribution == "Amazon" or (ansible_distribution == "CentOS" and ansible_distribution_major_version <= "6")
|
||||
when: ansible_distribution == "Amazon" or (ansible_os_family == "RedHat" and ansible_distribution_major_version <= "6")
|
||||
|
||||
- name: Link systemd config (RHEL 7)
|
||||
become: true
|
||||
file: src=/usr/games/minecraft/init/systemd_conf dest=/etc/systemd/system/mineos.service state=link
|
||||
notify: Restart mineos
|
||||
when: (ansible_distribution == "CentOS" and ansible_distribution_major_version == "7")
|
||||
when: (ansible_os_family == "RedHat" or ansible and ansible_distribution_major_version == "7")
|
||||
|
||||
Reference in New Issue
Block a user