Merge pull request #9875 from astorije/patch-2

Fix conditionals doc example
This commit is contained in:
Brian Coca 2014-12-22 09:16:14 -05:00
commit 241be0d6c5

View file

@ -166,11 +166,11 @@ To use this conditional import feature, you'll need facter or ohai installed pri
you can of course push this out with Ansible if you like::
# for facter
ansible -m yum -a "pkg=facter ensure=installed"
ansible -m yum -a "pkg=ruby-json ensure=installed"
ansible -m yum -a "pkg=facter state=present"
ansible -m yum -a "pkg=ruby-json state=present"
# for ohai
ansible -m yum -a "pkg=ohai ensure=installed"
ansible -m yum -a "pkg=ohai state=present"
Ansible's approach to configuration -- separating variables from tasks, keeps your playbooks
from turning into arbitrary code with ugly nested ifs, conditionals, and so on - and results