ansible.assemble(3) - Linux man page
Name
assemble - Assembles a configuration file from fragments
Description
Assembles a configuration file from fragments. Often a particular program will take a single configuration file and does not support a conf.d style structure where it is easy to build up the configuration from multiple sources. assemble will take a directory of files that have already been transferred to the system, and concatenate them together to produce a destination file. Files are assembled in string sorting order. Puppet calls this idea fragments.
Options
- backup
Create a backup file (if yes), including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly. Choices: yes,no. (default: no)
dest
A file to create using the concatenation of all of the source files.(required)
others
all arguments accepted by the file module also work here
src
An already existing directory full of source files.(required)."
Examples
Example from Ansible Playbooks
assemble: src=/etc/someapp/fragments dest=/etc/someapp/someapp.conf
Author
Stephen Fromm