Добрый день.
Пытаюсь сделать роль, которая добавит на сервер репозиторий PostgreSql.
Но возникают ошибки.
ERROR! playbooks must be a list of plays
The error appears to have been in '/etc/ansible/deploypostgresql.yml': line 2, column 1, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
---
roles:
^ here
Есть идеи ?
В deploypostgresql.yml
---
roles:
- deploy_postgresql
В /etc/ansible/roles/deploy_postgresql/tasks/main.yml
---
- hosts: all
remote_user: root
- name: PostgreSQL
yum:
name: https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-3.noarch.rpm
state: present