RHCE Ansible Series #3: Ansible Playbooks

In the previous tutorial you learned how to use Ansible ad-hoc commands to run a single task on your managed hosts. In this tutorial you will learn how to automate multiple tasks on your managed hosts by creating and running Ansible playbooks. .

To better understand the differences between Ansible ad-hoc command and Ansible playbooks you can think of Ansible ad-hoc commands as Linux commands and playbooks as bash scripts.

Ansible ad-hoc commands are ideal to perform tasks that are not executed frequently such us getting servers uptime retrieving system information etc. .

On the other hand Ansible playbooks are ideal to automate complex tasks like system patches application deployments firewall configurations user management etc.

Please notice that I have included all the playbooks scripts and files that I am going to discuss in this series in this GitHub repository.

Before you follow this Ansible Playbook tutorial you should refer to the setup mentioned in the first chapter of the Ansible series.


Read Full Post

News Link: https://linuxhandbook.com/ansible-playbooks/.
RSS Link: https://linuxhandbook.com/feed/.

Linux Chatter is a news aggregator service that curates some of the best Linux, Cloud, Technical Guides, Hardware and Security news. We display just enough content from the original post to spark your interest. If you like the topic, then click on the 'read full post' button to visit the author's website. Use Linux Chatter to find content from amazing authors!

Note: The content provided has been modified and is not displayed as intended by the author. Any trademarks, copyrights and rights remain with the source.

Disclaimer: Linux Chatter sources content from RSS feeds and personal content submissions. The views and opinions expressed in these articles are those of the authors and do not necessarily reflect those of Linux Chatter.