Exercise: Reading a File with Ansible
Explore how to create an Ansible playbook that reads the cpuinfo file from the /proc/ directory and displays its contents. Learn to register file data in a variable and output it, while managing inventory for localhost execution.
We'll cover the following...
We'll cover the following...
Task
The cpuinfo file displays the processor information on the target system. It is stored under the /proc/cpuinfo text file. We want to access the file and display the content on the screen.
Explanation
In this ...