Re-order tasks

This commit is contained in:
Rshad Zhran 2019-11-22 11:39:08 +01:00
parent 902ee2a3d1
commit c32d992f89

View File

@ -7,12 +7,6 @@
- tar - tar
state: present state: present
- include_tasks: "RedHat.yml"
when: (ansible_os_family == "RedHat" and ansible_distribution_major_version|int > 5) or (ansible_os_family == "RedHat" and ansible_distribution == "Amazon")
- include_tasks: "Debian.yml"
when: ansible_os_family == "Debian"
- name: Check if NodeJS service Exists - name: Check if NodeJS service Exists
stat: stat:
path: /usr/bin/node path: /usr/bin/node
@ -41,6 +35,12 @@
until: nodejs_service_is_installed is succeeded until: nodejs_service_is_installed is succeeded
tags: init tags: init
- include_tasks: "RedHat.yml"
when: (ansible_os_family == "RedHat" and ansible_distribution_major_version|int > 5) or (ansible_os_family == "RedHat" and ansible_distribution == "Amazon")
- include_tasks: "Debian.yml"
when: ansible_os_family == "Debian"
- name: Install expect - name: Install expect
package: package:
name: expect name: expect