Re-order tasks
This commit is contained in:
parent
902ee2a3d1
commit
c32d992f89
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user