yabchexu:
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
apt:
name: ''
with_items:
- postgresql
- postgresql-contrib
- libpq-dev
- python-pip
- python-dev
- build-essential
- name: install python packages
pip:
name: ""
state: latest
with_items:
- psycopg2
- name: setup database
become_user: postgres
tasks:
- 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
HERE