Note on how to use include for DRYer config

This commit is contained in:
Kovid Goyal
2022-03-04 07:13:56 +05:30
parent ad7c251f56
commit ef9adc92c8
2 changed files with 6 additions and 4 deletions

View File

@@ -29,7 +29,9 @@ The hostname the following options apply to. A glob pattern to match multiple
hosts can be used. When not specified options apply to all hosts, until the
first hostname specification is found. Note that the hostname this matches
against is the hostname used by the remote computer, not the name you pass
to SSH to connect to it.
to SSH to connect to it. If you wish to include the same configuration for many
different hosts, you can do so with the :code:`include` directive (see :doc:`conf`),
so that you need only two lines per host.
''')
opt('+copy', '', option_type='copy', add_to_default=False, long_text=f'''