Assembles a configuration file from fragments. Often a particular program will take a single configuration file and does not support a C(conf.d) style structure where it is easy to build up the configuration from multiple sources. M(assemble) will take a directory of files that can be local or 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 I(fragments).


src An already existing directory full of source files. true
dest 1. file to create using the concatenation of all of the source files. true
backup Create a backup file (if C(yes)), including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.
  • yes
  • no
delimiter 1. delimiter to separate the file contents.
remote_src If False, it will search for src at originating/master machine, if True it will go to the remote/target machine for the src. Default is True.
  • True
  • False
regexp Assemble files only if C(regex) matches the filename. If not set, all files are assembled. All "\\" (backslash) must be escaped as "\\\\" to comply yaml syntax. Uses Python regular expressions; see U(
ignore_hidden 1. boolean that controls if files that start with a '.' will be included or not.
validate The validation command to run before copying into place. The path to the file to validate is passed in via '%s' which must be present as in the sshd example below. The command is passed securely so shell features like expansion and pipes won't work.


Stephen Fromm (@sfromm)