Hello All,
I am trying to execute the following yml script but some errors are occurring ,please some help me out this error .
Script:-
Hello All,
I am trying to execute the following yml script but some errors are occurring ,please some help me out this error .
Script:-
Hello All,
I am trying to execute the following yml script but some errors are occurring ,please some help me out this error .
Script:-
---
- hosts: all
tasks:
- name: Import Remi GPG key
rpm_key: "key={{ item }} state=present"
with_items:
- "http://rpms.famillecollet.com/RPM-GPG-KEY-remi"
- name: Install Remi repo.
command: "rpm -Uvh --force {{ item.href }} creates={{ item.creates }}"
with_items:
- href: "http://rpms.famillecollet.com/enterprise/remi-release-6.rpm"
creates: "/etc/yum.repos.d/remi.repo"
- name: Install EPEL repo.
yum: name=epel-release state=present
- name: Ensure firewalld is stopped
service: name=firewalld state=stopped
- name: Install Node.js and npm
yum: name=npm state=present enablerepo=epel
- name: Install Forever
npm: name=forever global=yes state=latestError:-
ERROR! Syntax Error while loading YAML.
The indentation is incorrect in the line with "rpm_key". It needs the same position as "name".
Regards
Racke
like Stefan said rpm_key and with_items needs to be in the same line as name.
Basically like https://gist.github.com/mariusv/71e6e75941d495956234