0 комментариев

Доброго дня. Не выполняется таск для роли postgresql в Ansible.


- hosts: database_node
  become: yes
  become_method: sudo
  - name: add postgresql-9.6 official apt repository
    apt_repository: repo='deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' state=present
  - name: add trusted key
    apt_key: url=https://www.postgresql.org/media/keys/ACCC4CF8.asc state=present
  - name: install package
    apt: name=postgresql-9.6 update_cache=yes state=installed


ERROR! no action detected in task
The error appears to have been in
'/etc/ansible/roles/k.postgresql/tasks/main.yml': line 2, column
3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- hosts: database_node
^ here

Добавить комментарий