1,760
edits
Changes
→Task 2: Configure ansible's inventory file
co-nfs.stud14.ops ansible_host=192.168.14.3
rns-ldap.stud14.ops ansible_host=192.168.14.4
</pre>
* run the following commands to gather useful variables about remote hosts that can be used in ansible playbooks:
:* for remote host: vm2
<pre>
ansible pri-dns.<your dns domain> -m setup > pri-dns-setup.txt
</pre>
:* for remote host: vm3
<pre>
ansible co-nfs.<your dns domain> -m setup > co-nfs-setup.txt
</pre>
:* for remote host: vm4
<pre>
ansible rns-ldap.<your dns domain> -m setup > rns-ldap-setup.txt
</pre>