Debian Codegraph @

ansible_collections/microsoft/iis/docs/docsite/rst/guide_migration.rst

raw
1 .. _ansible_collections.microsoft.iis.docsite.guide_migration:
2
3 ***************
4 Migration guide
5 ***************
6
7 Some of the modules in this collection have come from the `community.windows collection <https://galaxy.ansible.com/community/windows>`_. This document will go through some of the changes made to help ease the transition from the older modules to the ones in this collection.
8
9 .. contents::
10 :local:
11 :depth: 1
12
13 .. _ansible_collections.microsoft.iis.docsite.guide_migration.migrated_modules:
14
15 Migrated Modules
16 ================
17
18 The following modules have been migrated in some shape or form into this collection
19
20 * ``community.windows.win_iis_website`` -> ``microsoft.iis.website`` - :ref:`details <ansible_collections.microsoft.iis.docsite.guide_migration.migrated_modules.win_iis_website>`
21 * ``community.windows.win_iis_webbinding`` -> ``microsoft.iis.website`` - :ref:`details <ansible_collections.microsoft.iis.docsite.guide_migration.migrated_modules.win_iis_webbinding>`
22 * ``community.windows.win_iis_virtualdirectory`` -> ``microsoft.iis.virtual_directory`` - :ref:`details <ansible_collections.microsoft.iis.docsite.guide_migration.migrated_modules.win_iis_virtualdirectory>`
23 * ``community.windows.win_iis_webapppool`` -> ``microsoft.iis.web_app_pool`` - :ref:`details <ansible_collections.microsoft.iis.docsite.guide_migration.migrated_modules.win_iis_webapppool>`
24 * ``community.windows.win_iis_webapplication`` -> ``microsoft.iis.web_application`` - :ref:`details <ansible_collections.microsoft.iis.docsite.guide_migration.migrated_modules.win_iis_webapplication>`
25
26 While these modules are mostly drop in place compatible there are some breaking changes that need to be considered. See each module entry for more information.
27
28 .. _ansible_collections.microsoft.iis.docsite.guide_migration.migrated_modules.win_iis_website:
29
30 Module ``win_iis_website``
31 --------------------------
32
33 Migrated to :ansplugin:`microsoft.iis.website#module`.
34
35 The following options have been removed:
36
37 * ``parameters`` - Not currently implemented in the new module
38 * ``hostname``, ``ip``, ``port`` - Moved to the ``bindings`` parameter, see :ref:`details <ansible_collections.microsoft.iis.docsite.guide_migration.migrated_modules.win_iis_webbinding>` for more details
39
40 The return values have also been removed in favour of the :ansplugin:`microsoft.iis.website_info#module` module.
41
42 This example shows how a website was defined in the old module and the equivalent definition in the new module:
43
44 .. code-block:: yaml
45
46 - name: Build website in win_iis_webbinding
47 community.windows.win_iis_website:
48 name: Acme
49 state: started
50 ip: 127.0.0.1
51 port: 80
52 application_pool: acme
53 physical_path: C:\sites\acme
54
55 - name: Build website in microsoft.iis.website
56 microsoft.iis.website:
57 name: Acme
58 state: started
59 bindings:
60 set:
61 - ip: 127.0.0.1
62 port: 80
63 application_pool: acme
64 physical_path: C:\sites\acme
65
66 .. _ansible_collections.microsoft.iis.docsite.guide_migration.migrated_modules.win_iis_webbinding:
67
68 Module ``win_iis_webbinding``
69 -----------------------------
70
71 Migrated to :ansplugin:`microsoft.iis.website#module`.
72
73 The entire module has been removed and the functionality has been merged into the :ansplugin:`microsoft.iis.website#module` module. The bindings are now specified by the ``bindings`` parameter in the website module and can be used to add, remove, or set multiple bindings in one operation on the website. While most of the ``bindings`` entries follow the same format as the old module, there are some changes to a binding entry:
74
75 * ``host_header`` - Has been renamed to ``hostname``
76 * ``ssl_flags`` - Has been split into ``use_sni`` and ``use_ccs``
77 * ``state`` - Controlled by specifying the binding into the relevant ``add``, ``remote``, or ``set`` key
78
79 .. _ansible_collections.microsoft.iis.docsite.guide_migration.migrated_modules.win_iis_virtualdirectory:
80
81 Module ``win_iis_virtualdirectory``
82 -----------------------------------
83
84 Migrated to :ansplugin:`microsoft.iis.virtual_directory#module`.
85
86 The new ``microsoft.iis.virtual_directory`` module is largely unchanged from the old module, with the exception of the return values being removed. The new :ansplugin:`microsoft.iis.virtual_directory_info#module` module can be used to retrieve information about virtual directories instead.
87
88 .. _ansible_collections.microsoft.iis.docsite.guide_migration.migrated_modules.win_iis_webapppool:
89
90 Module ``win_iis_webapppool``
91 -----------------------------
92
93 Migrated to :ansplugin:`microsoft.iis.web_app_pool#module`.
94
95 The new ``microsoft.iis.web_app_pool`` module is largely unchanged from the old module, with the exception of the return values being removed. The new :ansplugin:`microsoft.iis.web_app_pool_info#module` module can be used to retrieve information about web app pools instead.
96
97 .. _ansible_collections.microsoft.iis.docsite.guide_migration.migrated_modules.win_iis_webapplication:
98
99 Module ``win_iis_webapplication``
100 ---------------------------------
101
102 Migrated to :ansplugin:`microsoft.iis.web_application#module`.
103
104 The new ``microsoft.iis.web_application`` module is largely unchanged from the old module, with the exception of the return values being removed. The new :ansplugin:`microsoft.iis.web_application_info#module` module can be used to retrieve information about web applications instead.