Ansible state seems to do nothing

24 views
Skip to first unread message

Jonty Needham

unread,
Feb 3, 2017, 5:03:43 AM2/3/17
to Ansible Project
The following state, when run, requires the root password (as expected) then prints:

Using /etc/ansible/ansible.cfg as config file
SUDO password:

PLAYBOOK: install_stuff.yml ****************************************************
1 plays in install_stuff.yml

PLAY RECAP *********************************************************************


I'm expecting it to either state that some states have passed or failed. What have I got wrong?

---
- hosts: hostname
  become: true
  become_user: root
  become_method: su
  tasks:
  - yum:
      name: sl
      state: latest

Johannes Kastl

unread,
Feb 4, 2017, 3:42:39 PM2/4/17
to ansible...@googlegroups.com
On 03.02.17 11:03 Jonty Needham wrote:

> I'm expecting it to either state that some states have passed or
> failed. What have I got wrong?


Add -v or -vvv to your ansible-playbook call to see more info.

And, I have seen this when the hostname I gave does not match anything
in the inventory.

Johannes

signature.asc

Jean-Yves LENHOF

unread,
Feb 4, 2017, 5:07:13 PM2/4/17
to ansible...@googlegroups.com
Hi

One idea :

- Check your rpm database... If rpm -qa hang, you probably have to
rebuild it


Jean-Yves LENHOF
Reply all
Reply to author
Forward
0 new messages