Hi all,

I am in need of help/pointers from the community in setting up Ansible 
ansible 2.3.2.0 on ubuntu 14.04.

At the current stage it has been configure to retrieve the information from 
the remote server, but when I tried to do it through playbook (sudo 
ansible-playbook ubuntu14upgrade.yml) I get the following message 
"skipping: no hosts matched"

/etc/ansible/ansible.cfg is default settings

/etc/ansible/hosts has IP and hostname of the same remote server
eclipx@10.88.1.245
eclipx@MELDC1LPSTST1V

The above remote server responds to "ansible all -m ping"  and other 
request.

From: 
http://docs.ansible.com/ansible-tower/3.0.1/pdf/AnsibleTowerAdministrationGuide.pdf

If you receive the message “Skipping: No Hosts Matched” when you are trying 
to run a playbook through Tower, here are a few things to check:

• Make sure that your hosts declaration line in your playbook matches the 
name of your group/host in inventory exactly (these are case sensitive).

---
- hosts: MELDC1LPSTST1V
  remote_user: eclipx
  become: yes
  become_method: sudo
  become_user: su

  tasks:
    - name: install system updates for ubuntu systems
      apt: upgrade=dist update_cache=yes state=lastest
      when: ansible_distribution == "Ubuntu"

• If it does match and you are using Ansible Core 2.0 or later, check your 
group names for spaces and modify them to use underscores or no spaces to 
ensure that the groups can be recognized.

• Make sure that if you have specified a Limit in the Job Template that it 
is a valid limit value and still matches something in your inventory. The 
Limit field takes a pattern argument, described here: 
http://docs.ansible.com/intro_patterns.html


Please file a support ticket if you still run into issues after checking 
these options.

Lost & thanks for your time...


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/14ddef2e-197b-4d7f-b973-ee90f58d5aa9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to