O'Reilly logo

Ansible Configuration Management by Daniel Hall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The playbook modules

Using modules in playbooks is a little bit different from using them in the command line. This is mainly because we have many facts available from the previous modules and the setup module. Certain modules don't work in the Ansible command line because they require access to those variables. Other modules will work in the command-line version, but are able to provide enhanced functionalities when used in a playbook.

The template module

One of the most frequently used examples of a module that requires facts from Ansible is the template module. This module allows you to design an outline of a configuration file and then have Ansible insert values in the right places. In reality, the Jinja2 templates can be much more complicated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required