playbook do not execute

15 views
Skip to first unread message

Юра Фролов

unread,
Feb 7, 2017, 3:15:06 AM2/7/17
to Ansible Project
Hello,
I have Debian 8.1 and ansible 2.2.1.0.
When I execute playbook I recive  that message 
PLAY RECAP *********************************************************************
and nothing more.

My test playbook is very simple 
# test2.yml
---
- hosts: 192.168.43.130
  user: admin-test
  become_user: yes


  tasks:
       - name: Test ps
         raw: ps -au
         become_user: yes

But if i am doing  this task in cli ansible test -m shell -a "ps -aux" i successful receive list of proccess.

Same folder /usr/share/ansible is empty.

Is it error ansible or i do something not this way?
 

Johannes Kastl

unread,
Feb 7, 2017, 5:14:10 AM2/7/17
to ansible...@googlegroups.com
On 07.02.17 09:15 Юра Фролов wrote:
> Hello,
> I have Debian 8.1 and ansible 2.2.1.0.
> When I execute playbook I recive that message
> *PLAY RECAP
> **********************************************************************
> and nothing more.

That normally means your hosts is not in the inventory. Or rather, no
hosts that you specified are found in the inventory.

Ansible's ad-hoc commands to not need the inventory.

Johannes

signature.asc

Юра Фролов

unread,
Feb 7, 2017, 5:30:44 AM2/7/17
to Ansible Project
Ohh, exactly. Sorry for inattention.

Say, folder /usr/share/ansible should be empty? Do modules are located in folder /usr/lib/python2.7/dist-packages/ansible/, for example, shell, lineinfile, command, apt and so on?
Reply all
Reply to author
Forward
0 new messages