Added examples section, get distribution version example

This commit is contained in:
xezpeleta 2016-11-23 15:30:19 +01:00
parent 70fe610631
commit 85944bb0b4
1 changed files with 10 additions and 0 deletions

View File

@ -87,3 +87,13 @@ So if you want to exclude Windows machines, you could do the following:
# Run a playbook in every running Linux machine in Proxmox
ansible-playbook -i /etc/ansible/proxmox.py --limit='running,!windows' playbook-example/playbook.yml
```
## Examples
#### Show Linux distribution version for every VM in Proxmox cluster:
```sh
ansible all -i /etc/ansible/proxmox.py --limit 'running,!windows' -m setup -u root -a 'filter=ansible_distribution_*'
```
Check more info about [Ansible setup module](http://docs.ansible.com/ansible/setup_module.html)