Pretty Print Ansible Inventory
Use the ansible-inventory command using the --graph: ansible-inventory -i inventory --graph
Use the ansible-inventory command using the --graph: ansible-inventory -i inventory --graph
In the same dir where your Ansible playbook is create a file named ansible.cfg. Paste the following content in the file: [defaults] stdout_callback = community.general.yaml You’are all set.
What do you do if you lose your SSH connection to a server and you want to open the same session to continue the work your were doing? You use the command screen1 . 1. screen keeps the session running on the remote machine, so reconnecting lets you resume the same shell instead of starting over. GNU Screen can keep long-running shells alive and even split the terminal into multiple panes. Screen is usually pre-installed in modern Linux distros, but if it’s not you can install it using sudo apt install screen. ...