@@ -587,7 +589,7 @@ logs from ansible-pull runs would be an excellent way to gather and analyze remo
...
@@ -587,7 +589,7 @@ logs from ansible-pull runs would be an excellent way to gather and analyze remo
it later. Use of the command module in this way can in many ways eliminate the need to write site specific facts, for
it later. Use of the command module in this way can in many ways eliminate the need to write site specific facts, for
instance, you could test for the existance of a particular program.</p>
instance, you could test for the existance of a particular program.</p>
<p>The ‘register’ keyword decides what variable to save a result in. The resulting variables can be used in templates, action lines, or only_if statements. It looks like this (in an obviously trivial example):</p>
<p>The ‘register’ keyword decides what variable to save a result in. The resulting variables can be used in templates, action lines, or only_if statements. It looks like this (in an obviously trivial example):</p>
<divclass="highlight-python"><pre>- name: test playbook
<divclass="highlight-python"><pre>- name: test play
hosts: all
hosts: all
tasks:
tasks:
...
@@ -599,6 +601,45 @@ instance, you could test for the existance of a particular program.</p>
...
@@ -599,6 +601,45 @@ instance, you could test for the existance of a particular program.</p>
@@ -448,7 +448,7 @@ instance, you could test for the existance of a particular program.
...
@@ -448,7 +448,7 @@ instance, you could test for the existance of a particular program.
The 'register' keyword decides what variable to save a result in. The resulting variables can be used in templates, action lines, or only_if statements. It looks like this (in an obviously trivial example)::
The 'register' keyword decides what variable to save a result in. The resulting variables can be used in templates, action lines, or only_if statements. It looks like this (in an obviously trivial example)::
- name: test playbook
- name: test play
hosts: all
hosts: all
tasks:
tasks:
...
@@ -460,6 +460,49 @@ The 'register' keyword decides what variable to save a result in. The resulting
...
@@ -460,6 +460,49 @@ The 'register' keyword decides what variable to save a result in. The resulting