mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 01:03:09 +00:00
Merge pull request #9875 from astorije/patch-2
Fix conditionals doc example
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user