From 85944bb0b437ab6e60ca11979e068fc8d534da93 Mon Sep 17 00:00:00 2001 From: xezpeleta Date: Wed, 23 Nov 2016 15:30:19 +0100 Subject: [PATCH] Added examples section, get distribution version example --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index b1eeddd..f1ad6e8 100644 --- a/README.md +++ b/README.md @@ -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)