Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: ansible indent error when using "name"


I got Error which seems an indent error after running Ansible playbook. I have specified host in the ansible command, ansible ran OK for the apt and pip ones but got error for the database setup. point to "name" which is weird. Anyone know what kind of mistake it is?

exception type:
exception: no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The offending line appears to be:
- name: setup database
^ here

here is my yaml code:

- name: Update and upgrade apt packages
apt: update_cache=yes

- name: install system packages
name: ''
- postgresql
- postgresql-contrib
- libpq-dev
- python-pip
- python-dev
- build-essential

- name: install python packages
name: ""
state: latest
- psycopg2

- name: setup database
become_user: postgres
- name: create db
postgresql_db: name=

- name: create access
postgresql_user: db= name= password= priv=ALL

Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered

This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: ansible indent error when using "name"


Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription