You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/docs/docsite/rst/user_guide/collections_using.rst

106 lines
2.7 KiB
ReStructuredText

Backport/2.9/docs2 (#62805) * Update pip module docs (#62359) * Clarifying pip module requirements in reference to #47361 * Further clarifying message with link to ansible_python_interpreter (cherry picked from commit d3ec5ca80f630ed8c78ea3fab73e0d2927a89b5e) * chore/doc-module: sts_assume_role.py (#62475) Update `Example` section with with the correct module usage. (cherry picked from commit a4a216640fc7efe436f3f09808500b52ff6a63cd) * Improve dconf documentation to include conversion problems (#62316) (cherry picked from commit 864928365ef000c187871e6874b520f0bd2bc97c) * Add examples for various inventory setups to the documentation (#62323) * Updates docs/docsite/rst/user_guide/intro_inventory.rst, closes #12480. * Use code-block and rename groups in inventory setup examples * Fix group name in inventory setup example Co-Authored-By: Sandra McCann <samccann@redhat.com> (cherry picked from commit 7047b66d345fc98c9ed163bbd47f3ee7c092f55b) * added networking porting guide info (#61999) * Update docs/docsite/rst/porting_guides/porting_guide_2.9.rst Co-Authored-By: Nathaniel Case <this.is@nathanielca.se> (cherry picked from commit 6d35f9026f521b3191a0ad5e5abbdeb1c46ec29e) * [docs] split collections into user and dev guide sections (#62363) (cherry picked from commit 7badeb6df0e644419adf2b5daf9545d448defe60) * fixed options (#62605) (cherry picked from commit 170b4e63ffa6115275cb78ebc0f68f8aa79f99a3) * ec2_vpc_subnet: Rename resource_tags > tags (#62663) Most of the AWS module documentation refers to `tags` and not `resource_tags`. This patch updates the documentation to match other AWS module documentation. 😉 Signed-off-by: Major Hayden <major@redhat.com> (cherry picked from commit cced1a3cd1e696cf5927ed248215d442dd6c1244) * [Docs] Document the resource module builder (#62222) (cherry picked from commit b17581a3075f571ed5b48126282e086a6efa30cc) * Fix link syntax and a typo in dev collections doc (#62650) (cherry picked from commit 2969614c2cb89151c3bf2487e0e1a1afe77cde96) * hcloud_volume: clarify volume size units (#62771) (cherry picked from commit 190b8fcd1cc413a8b3a6e5c9f3f74353990400dd) * ovirt_host update force doc (#62491) (cherry picked from commit 3b2b418aadc6ff2da4bae7f3d14ab8a51b207f77) * update example document for zabbix_action module (#62667) (cherry picked from commit 3299f29f7c7c4866baef78e8ae1d5272cd0b265d)
5 years ago
.. _collections:
*****************
Using collections
*****************
Collections are a distribution format for Ansible content that can include playbooks, roles, modules, and plugins.
You can install and use collections through `Ansible Galaxy <https://galaxy.ansible.com>`_.
.. contents::
:local:
:depth: 2
Backport/2.9/docs (#63247) * add more anchors to collections docs (#62827) (cherry picked from commit 7e01de96d741c6fb8a1ce04f92873ffb57c9b1b5) * add anchors to support galaxy links (#62808) (cherry picked from commit 1b3bf33bdf2530adb3a7cbf8055007acb09b3bb2) * doc: fix typos (#62852) (cherry picked from commit b33ae1494936cd04fa89bce51e6068829fc89a91) * Add some documentation about using plugins in collections (#62465) - FQCN requirements - Sharing code in collections - Limitations with inventory caching (cherry picked from commit d41050b28b2d3e8d4a97ce13344b04fc87f703a2) * Remove Latin phrases from the docs (#62419) * add styleguide about avoiding use of latin words (cherry picked from commit e7436e278f8945dd73b066c47280c1a17bc18ebe) * ovirt: Fixing typo in ovirt_disk examples (#62962) (cherry picked from commit 50dc41cca2e6d75a05e933c5286f41bde235b65f) * vmware guidlines: adjust the location of cloud-config-vcenter.ini.template (#62970) Update the location of the cloud-config-vcenter.ini.template template. The file has been moved by: 2e7d36a3f969b31570d7ee34e3f1f971c5c586a9. (cherry picked from commit 7ecfa4a471ae17ee15aa51f684bf7d340805d432) * Prefer https:// links in the docs site (#62939) This is a follow-up of last year's 1a11cec. It deals with links which at that point either were not present or did not support https://. (cherry picked from commit c8315bfd6097f680ae79de5e4d4ee23d0c1068c0) * fix minor typos (#62950) (cherry picked from commit ad580a71c475b570cdbd4c79aaf0082ecccdf5fc) * Modernize Vagrant documentation (#62923) * By requiring a slightly newer Vagrant version (from 2015) we get the same generated Ansible inventory format is still used by today's version of Vagrant. That extended inventory format also has the benefit of allowing for simpler Ansible examples. * Switching to a current and supported Ubuntu LTS version. (cherry picked from commit 0d79013f51ca67eddcb1a3f6ff0f4453b659ee81) * add ios/iosxr deprecated modules (#62908) (cherry picked from commit 6bbd9c9eca5992d9fc53dd8fd8814205afaf508d)
5 years ago
.. _collections_installing:
Backport/2.9/docs2 (#62805) * Update pip module docs (#62359) * Clarifying pip module requirements in reference to #47361 * Further clarifying message with link to ansible_python_interpreter (cherry picked from commit d3ec5ca80f630ed8c78ea3fab73e0d2927a89b5e) * chore/doc-module: sts_assume_role.py (#62475) Update `Example` section with with the correct module usage. (cherry picked from commit a4a216640fc7efe436f3f09808500b52ff6a63cd) * Improve dconf documentation to include conversion problems (#62316) (cherry picked from commit 864928365ef000c187871e6874b520f0bd2bc97c) * Add examples for various inventory setups to the documentation (#62323) * Updates docs/docsite/rst/user_guide/intro_inventory.rst, closes #12480. * Use code-block and rename groups in inventory setup examples * Fix group name in inventory setup example Co-Authored-By: Sandra McCann <samccann@redhat.com> (cherry picked from commit 7047b66d345fc98c9ed163bbd47f3ee7c092f55b) * added networking porting guide info (#61999) * Update docs/docsite/rst/porting_guides/porting_guide_2.9.rst Co-Authored-By: Nathaniel Case <this.is@nathanielca.se> (cherry picked from commit 6d35f9026f521b3191a0ad5e5abbdeb1c46ec29e) * [docs] split collections into user and dev guide sections (#62363) (cherry picked from commit 7badeb6df0e644419adf2b5daf9545d448defe60) * fixed options (#62605) (cherry picked from commit 170b4e63ffa6115275cb78ebc0f68f8aa79f99a3) * ec2_vpc_subnet: Rename resource_tags > tags (#62663) Most of the AWS module documentation refers to `tags` and not `resource_tags`. This patch updates the documentation to match other AWS module documentation. 😉 Signed-off-by: Major Hayden <major@redhat.com> (cherry picked from commit cced1a3cd1e696cf5927ed248215d442dd6c1244) * [Docs] Document the resource module builder (#62222) (cherry picked from commit b17581a3075f571ed5b48126282e086a6efa30cc) * Fix link syntax and a typo in dev collections doc (#62650) (cherry picked from commit 2969614c2cb89151c3bf2487e0e1a1afe77cde96) * hcloud_volume: clarify volume size units (#62771) (cherry picked from commit 190b8fcd1cc413a8b3a6e5c9f3f74353990400dd) * ovirt_host update force doc (#62491) (cherry picked from commit 3b2b418aadc6ff2da4bae7f3d14ab8a51b207f77) * update example document for zabbix_action module (#62667) (cherry picked from commit 3299f29f7c7c4866baef78e8ae1d5272cd0b265d)
5 years ago
Installing collections
======================
Backport/2.9/docs2 (#63524) * Update sros_config.py (#63132) (cherry picked from commit b3deab4319fe1e793d36307093e1639a49c28175) * add note about collection links (#63346) (cherry picked from commit bdd0fac606265f92e6521540106accf19a1ae4d0) * Nosh module documentation update (#63303) * detail the 'status' dictionary * did not add individual descriptions, see nosh documentation for those * sample: False not being rendered unless 'False' is quoted (cherry picked from commit df283788e562470741ebed15dc4374190316c352) * Move galaxy appendix info to a new Galaxy section (#63356) * start galaxy docs restructure * shared snippets in txt files * moved all content to galaxy section (cherry picked from commit ae265bc5464a89935bfe1be6af050b94e09b6eb9) * Enter should be Italics as it is a menu option (#63441) (cherry picked from commit 7a8c9098763a2b6a30d54d69aa94b2ecf1ee516d) * ini_file: remove incorrect documentation (#63394) (cherry picked from commit ab249a469eaa9cb27c3f17813a60fe23ee2d7315) * Changed with_items to loop in VMware example (#63022) (cherry picked from commit 876a2d57be5683ab5cfa90268a4712187c092fdb) * ovirt update fetch_nested param doc (#63191) (cherry picked from commit 0beab6bf699fc014aeb7bb74af7a692b2e7d462f) * Update 'delete' parameter description in synchronize module (#63450) Co-Authored-By: Abhijeet Kasurde <akasurde@redhat.com> (cherry picked from commit da46800f1b0576a4a2cc5d6ca20b24efe58ea3d7) * Update unarchive.py - Further clarify extra_opts (#58102) Update the description in the options to help assist with what the module is looking for in the extra_opts. #31873 alone is not enough since if you are not familiar with the option given in the example it may not be obvious that both elements are part of the same option instead of being two different options. Co-Authored-By: Alicia Cozine <879121+acozine@users.noreply.github.com> (cherry picked from commit e967060b9f64dffdf4b7febb27f64dd3a411f59b) * ovirt_vm add warning about next run configuration (#63458) (cherry picked from commit 16e49fdd44134356323d10207715f7943ef0f44f) * Fix doc - porting_guide_2.8 value example (#63493) (cherry picked from commit e0f67b58ce85b3fbb5930e19ad76d27834cf6c34) * Fix warnings for ufw examples (#63505) (cherry picked from commit e4eea0510cd89124c3a20f4d9937e7c015a46597)
5 years ago
.. include:: ../shared_snippets/installing_collections.txt
Backport/2.9/docs (#63247) * add more anchors to collections docs (#62827) (cherry picked from commit 7e01de96d741c6fb8a1ce04f92873ffb57c9b1b5) * add anchors to support galaxy links (#62808) (cherry picked from commit 1b3bf33bdf2530adb3a7cbf8055007acb09b3bb2) * doc: fix typos (#62852) (cherry picked from commit b33ae1494936cd04fa89bce51e6068829fc89a91) * Add some documentation about using plugins in collections (#62465) - FQCN requirements - Sharing code in collections - Limitations with inventory caching (cherry picked from commit d41050b28b2d3e8d4a97ce13344b04fc87f703a2) * Remove Latin phrases from the docs (#62419) * add styleguide about avoiding use of latin words (cherry picked from commit e7436e278f8945dd73b066c47280c1a17bc18ebe) * ovirt: Fixing typo in ovirt_disk examples (#62962) (cherry picked from commit 50dc41cca2e6d75a05e933c5286f41bde235b65f) * vmware guidlines: adjust the location of cloud-config-vcenter.ini.template (#62970) Update the location of the cloud-config-vcenter.ini.template template. The file has been moved by: 2e7d36a3f969b31570d7ee34e3f1f971c5c586a9. (cherry picked from commit 7ecfa4a471ae17ee15aa51f684bf7d340805d432) * Prefer https:// links in the docs site (#62939) This is a follow-up of last year's 1a11cec. It deals with links which at that point either were not present or did not support https://. (cherry picked from commit c8315bfd6097f680ae79de5e4d4ee23d0c1068c0) * fix minor typos (#62950) (cherry picked from commit ad580a71c475b570cdbd4c79aaf0082ecccdf5fc) * Modernize Vagrant documentation (#62923) * By requiring a slightly newer Vagrant version (from 2015) we get the same generated Ansible inventory format is still used by today's version of Vagrant. That extended inventory format also has the benefit of allowing for simpler Ansible examples. * Switching to a current and supported Ubuntu LTS version. (cherry picked from commit 0d79013f51ca67eddcb1a3f6ff0f4453b659ee81) * add ios/iosxr deprecated modules (#62908) (cherry picked from commit 6bbd9c9eca5992d9fc53dd8fd8814205afaf508d)
5 years ago
.. _collections_older_version:
Backport/2.9/docs2 (#62805) * Update pip module docs (#62359) * Clarifying pip module requirements in reference to #47361 * Further clarifying message with link to ansible_python_interpreter (cherry picked from commit d3ec5ca80f630ed8c78ea3fab73e0d2927a89b5e) * chore/doc-module: sts_assume_role.py (#62475) Update `Example` section with with the correct module usage. (cherry picked from commit a4a216640fc7efe436f3f09808500b52ff6a63cd) * Improve dconf documentation to include conversion problems (#62316) (cherry picked from commit 864928365ef000c187871e6874b520f0bd2bc97c) * Add examples for various inventory setups to the documentation (#62323) * Updates docs/docsite/rst/user_guide/intro_inventory.rst, closes #12480. * Use code-block and rename groups in inventory setup examples * Fix group name in inventory setup example Co-Authored-By: Sandra McCann <samccann@redhat.com> (cherry picked from commit 7047b66d345fc98c9ed163bbd47f3ee7c092f55b) * added networking porting guide info (#61999) * Update docs/docsite/rst/porting_guides/porting_guide_2.9.rst Co-Authored-By: Nathaniel Case <this.is@nathanielca.se> (cherry picked from commit 6d35f9026f521b3191a0ad5e5abbdeb1c46ec29e) * [docs] split collections into user and dev guide sections (#62363) (cherry picked from commit 7badeb6df0e644419adf2b5daf9545d448defe60) * fixed options (#62605) (cherry picked from commit 170b4e63ffa6115275cb78ebc0f68f8aa79f99a3) * ec2_vpc_subnet: Rename resource_tags > tags (#62663) Most of the AWS module documentation refers to `tags` and not `resource_tags`. This patch updates the documentation to match other AWS module documentation. 😉 Signed-off-by: Major Hayden <major@redhat.com> (cherry picked from commit cced1a3cd1e696cf5927ed248215d442dd6c1244) * [Docs] Document the resource module builder (#62222) (cherry picked from commit b17581a3075f571ed5b48126282e086a6efa30cc) * Fix link syntax and a typo in dev collections doc (#62650) (cherry picked from commit 2969614c2cb89151c3bf2487e0e1a1afe77cde96) * hcloud_volume: clarify volume size units (#62771) (cherry picked from commit 190b8fcd1cc413a8b3a6e5c9f3f74353990400dd) * ovirt_host update force doc (#62491) (cherry picked from commit 3b2b418aadc6ff2da4bae7f3d14ab8a51b207f77) * update example document for zabbix_action module (#62667) (cherry picked from commit 3299f29f7c7c4866baef78e8ae1d5272cd0b265d)
5 years ago
Installing an older version of a collection
-------------------------------------------
Backport/2.9/docs2 (#63524) * Update sros_config.py (#63132) (cherry picked from commit b3deab4319fe1e793d36307093e1639a49c28175) * add note about collection links (#63346) (cherry picked from commit bdd0fac606265f92e6521540106accf19a1ae4d0) * Nosh module documentation update (#63303) * detail the 'status' dictionary * did not add individual descriptions, see nosh documentation for those * sample: False not being rendered unless 'False' is quoted (cherry picked from commit df283788e562470741ebed15dc4374190316c352) * Move galaxy appendix info to a new Galaxy section (#63356) * start galaxy docs restructure * shared snippets in txt files * moved all content to galaxy section (cherry picked from commit ae265bc5464a89935bfe1be6af050b94e09b6eb9) * Enter should be Italics as it is a menu option (#63441) (cherry picked from commit 7a8c9098763a2b6a30d54d69aa94b2ecf1ee516d) * ini_file: remove incorrect documentation (#63394) (cherry picked from commit ab249a469eaa9cb27c3f17813a60fe23ee2d7315) * Changed with_items to loop in VMware example (#63022) (cherry picked from commit 876a2d57be5683ab5cfa90268a4712187c092fdb) * ovirt update fetch_nested param doc (#63191) (cherry picked from commit 0beab6bf699fc014aeb7bb74af7a692b2e7d462f) * Update 'delete' parameter description in synchronize module (#63450) Co-Authored-By: Abhijeet Kasurde <akasurde@redhat.com> (cherry picked from commit da46800f1b0576a4a2cc5d6ca20b24efe58ea3d7) * Update unarchive.py - Further clarify extra_opts (#58102) Update the description in the options to help assist with what the module is looking for in the extra_opts. #31873 alone is not enough since if you are not familiar with the option given in the example it may not be obvious that both elements are part of the same option instead of being two different options. Co-Authored-By: Alicia Cozine <879121+acozine@users.noreply.github.com> (cherry picked from commit e967060b9f64dffdf4b7febb27f64dd3a411f59b) * ovirt_vm add warning about next run configuration (#63458) (cherry picked from commit 16e49fdd44134356323d10207715f7943ef0f44f) * Fix doc - porting_guide_2.8 value example (#63493) (cherry picked from commit e0f67b58ce85b3fbb5930e19ad76d27834cf6c34) * Fix warnings for ufw examples (#63505) (cherry picked from commit e4eea0510cd89124c3a20f4d9937e7c015a46597)
5 years ago
.. include:: ../shared_snippets/installing_older_collection.txt
Backport/2.9/docs2 (#62805) * Update pip module docs (#62359) * Clarifying pip module requirements in reference to #47361 * Further clarifying message with link to ansible_python_interpreter (cherry picked from commit d3ec5ca80f630ed8c78ea3fab73e0d2927a89b5e) * chore/doc-module: sts_assume_role.py (#62475) Update `Example` section with with the correct module usage. (cherry picked from commit a4a216640fc7efe436f3f09808500b52ff6a63cd) * Improve dconf documentation to include conversion problems (#62316) (cherry picked from commit 864928365ef000c187871e6874b520f0bd2bc97c) * Add examples for various inventory setups to the documentation (#62323) * Updates docs/docsite/rst/user_guide/intro_inventory.rst, closes #12480. * Use code-block and rename groups in inventory setup examples * Fix group name in inventory setup example Co-Authored-By: Sandra McCann <samccann@redhat.com> (cherry picked from commit 7047b66d345fc98c9ed163bbd47f3ee7c092f55b) * added networking porting guide info (#61999) * Update docs/docsite/rst/porting_guides/porting_guide_2.9.rst Co-Authored-By: Nathaniel Case <this.is@nathanielca.se> (cherry picked from commit 6d35f9026f521b3191a0ad5e5abbdeb1c46ec29e) * [docs] split collections into user and dev guide sections (#62363) (cherry picked from commit 7badeb6df0e644419adf2b5daf9545d448defe60) * fixed options (#62605) (cherry picked from commit 170b4e63ffa6115275cb78ebc0f68f8aa79f99a3) * ec2_vpc_subnet: Rename resource_tags > tags (#62663) Most of the AWS module documentation refers to `tags` and not `resource_tags`. This patch updates the documentation to match other AWS module documentation. 😉 Signed-off-by: Major Hayden <major@redhat.com> (cherry picked from commit cced1a3cd1e696cf5927ed248215d442dd6c1244) * [Docs] Document the resource module builder (#62222) (cherry picked from commit b17581a3075f571ed5b48126282e086a6efa30cc) * Fix link syntax and a typo in dev collections doc (#62650) (cherry picked from commit 2969614c2cb89151c3bf2487e0e1a1afe77cde96) * hcloud_volume: clarify volume size units (#62771) (cherry picked from commit 190b8fcd1cc413a8b3a6e5c9f3f74353990400dd) * ovirt_host update force doc (#62491) (cherry picked from commit 3b2b418aadc6ff2da4bae7f3d14ab8a51b207f77) * update example document for zabbix_action module (#62667) (cherry picked from commit 3299f29f7c7c4866baef78e8ae1d5272cd0b265d)
5 years ago
.. _collection_requirements_file:
Install multiple collections with a requirements file
-----------------------------------------------------
Backport/2.9/docs2 (#63524) * Update sros_config.py (#63132) (cherry picked from commit b3deab4319fe1e793d36307093e1639a49c28175) * add note about collection links (#63346) (cherry picked from commit bdd0fac606265f92e6521540106accf19a1ae4d0) * Nosh module documentation update (#63303) * detail the 'status' dictionary * did not add individual descriptions, see nosh documentation for those * sample: False not being rendered unless 'False' is quoted (cherry picked from commit df283788e562470741ebed15dc4374190316c352) * Move galaxy appendix info to a new Galaxy section (#63356) * start galaxy docs restructure * shared snippets in txt files * moved all content to galaxy section (cherry picked from commit ae265bc5464a89935bfe1be6af050b94e09b6eb9) * Enter should be Italics as it is a menu option (#63441) (cherry picked from commit 7a8c9098763a2b6a30d54d69aa94b2ecf1ee516d) * ini_file: remove incorrect documentation (#63394) (cherry picked from commit ab249a469eaa9cb27c3f17813a60fe23ee2d7315) * Changed with_items to loop in VMware example (#63022) (cherry picked from commit 876a2d57be5683ab5cfa90268a4712187c092fdb) * ovirt update fetch_nested param doc (#63191) (cherry picked from commit 0beab6bf699fc014aeb7bb74af7a692b2e7d462f) * Update 'delete' parameter description in synchronize module (#63450) Co-Authored-By: Abhijeet Kasurde <akasurde@redhat.com> (cherry picked from commit da46800f1b0576a4a2cc5d6ca20b24efe58ea3d7) * Update unarchive.py - Further clarify extra_opts (#58102) Update the description in the options to help assist with what the module is looking for in the extra_opts. #31873 alone is not enough since if you are not familiar with the option given in the example it may not be obvious that both elements are part of the same option instead of being two different options. Co-Authored-By: Alicia Cozine <879121+acozine@users.noreply.github.com> (cherry picked from commit e967060b9f64dffdf4b7febb27f64dd3a411f59b) * ovirt_vm add warning about next run configuration (#63458) (cherry picked from commit 16e49fdd44134356323d10207715f7943ef0f44f) * Fix doc - porting_guide_2.8 value example (#63493) (cherry picked from commit e0f67b58ce85b3fbb5930e19ad76d27834cf6c34) * Fix warnings for ufw examples (#63505) (cherry picked from commit e4eea0510cd89124c3a20f4d9937e7c015a46597)
5 years ago
.. include:: ../shared_snippets/installing_multiple_collections.txt
Backport/2.9/docs2 (#62805) * Update pip module docs (#62359) * Clarifying pip module requirements in reference to #47361 * Further clarifying message with link to ansible_python_interpreter (cherry picked from commit d3ec5ca80f630ed8c78ea3fab73e0d2927a89b5e) * chore/doc-module: sts_assume_role.py (#62475) Update `Example` section with with the correct module usage. (cherry picked from commit a4a216640fc7efe436f3f09808500b52ff6a63cd) * Improve dconf documentation to include conversion problems (#62316) (cherry picked from commit 864928365ef000c187871e6874b520f0bd2bc97c) * Add examples for various inventory setups to the documentation (#62323) * Updates docs/docsite/rst/user_guide/intro_inventory.rst, closes #12480. * Use code-block and rename groups in inventory setup examples * Fix group name in inventory setup example Co-Authored-By: Sandra McCann <samccann@redhat.com> (cherry picked from commit 7047b66d345fc98c9ed163bbd47f3ee7c092f55b) * added networking porting guide info (#61999) * Update docs/docsite/rst/porting_guides/porting_guide_2.9.rst Co-Authored-By: Nathaniel Case <this.is@nathanielca.se> (cherry picked from commit 6d35f9026f521b3191a0ad5e5abbdeb1c46ec29e) * [docs] split collections into user and dev guide sections (#62363) (cherry picked from commit 7badeb6df0e644419adf2b5daf9545d448defe60) * fixed options (#62605) (cherry picked from commit 170b4e63ffa6115275cb78ebc0f68f8aa79f99a3) * ec2_vpc_subnet: Rename resource_tags > tags (#62663) Most of the AWS module documentation refers to `tags` and not `resource_tags`. This patch updates the documentation to match other AWS module documentation. 😉 Signed-off-by: Major Hayden <major@redhat.com> (cherry picked from commit cced1a3cd1e696cf5927ed248215d442dd6c1244) * [Docs] Document the resource module builder (#62222) (cherry picked from commit b17581a3075f571ed5b48126282e086a6efa30cc) * Fix link syntax and a typo in dev collections doc (#62650) (cherry picked from commit 2969614c2cb89151c3bf2487e0e1a1afe77cde96) * hcloud_volume: clarify volume size units (#62771) (cherry picked from commit 190b8fcd1cc413a8b3a6e5c9f3f74353990400dd) * ovirt_host update force doc (#62491) (cherry picked from commit 3b2b418aadc6ff2da4bae7f3d14ab8a51b207f77) * update example document for zabbix_action module (#62667) (cherry picked from commit 3299f29f7c7c4866baef78e8ae1d5272cd0b265d)
5 years ago
.. _galaxy_server_config:
Galaxy server configuration list
--------------------------------
Backport/2.9/docs2 (#63524) * Update sros_config.py (#63132) (cherry picked from commit b3deab4319fe1e793d36307093e1639a49c28175) * add note about collection links (#63346) (cherry picked from commit bdd0fac606265f92e6521540106accf19a1ae4d0) * Nosh module documentation update (#63303) * detail the 'status' dictionary * did not add individual descriptions, see nosh documentation for those * sample: False not being rendered unless 'False' is quoted (cherry picked from commit df283788e562470741ebed15dc4374190316c352) * Move galaxy appendix info to a new Galaxy section (#63356) * start galaxy docs restructure * shared snippets in txt files * moved all content to galaxy section (cherry picked from commit ae265bc5464a89935bfe1be6af050b94e09b6eb9) * Enter should be Italics as it is a menu option (#63441) (cherry picked from commit 7a8c9098763a2b6a30d54d69aa94b2ecf1ee516d) * ini_file: remove incorrect documentation (#63394) (cherry picked from commit ab249a469eaa9cb27c3f17813a60fe23ee2d7315) * Changed with_items to loop in VMware example (#63022) (cherry picked from commit 876a2d57be5683ab5cfa90268a4712187c092fdb) * ovirt update fetch_nested param doc (#63191) (cherry picked from commit 0beab6bf699fc014aeb7bb74af7a692b2e7d462f) * Update 'delete' parameter description in synchronize module (#63450) Co-Authored-By: Abhijeet Kasurde <akasurde@redhat.com> (cherry picked from commit da46800f1b0576a4a2cc5d6ca20b24efe58ea3d7) * Update unarchive.py - Further clarify extra_opts (#58102) Update the description in the options to help assist with what the module is looking for in the extra_opts. #31873 alone is not enough since if you are not familiar with the option given in the example it may not be obvious that both elements are part of the same option instead of being two different options. Co-Authored-By: Alicia Cozine <879121+acozine@users.noreply.github.com> (cherry picked from commit e967060b9f64dffdf4b7febb27f64dd3a411f59b) * ovirt_vm add warning about next run configuration (#63458) (cherry picked from commit 16e49fdd44134356323d10207715f7943ef0f44f) * Fix doc - porting_guide_2.8 value example (#63493) (cherry picked from commit e0f67b58ce85b3fbb5930e19ad76d27834cf6c34) * Fix warnings for ufw examples (#63505) (cherry picked from commit e4eea0510cd89124c3a20f4d9937e7c015a46597)
5 years ago
.. include:: ../shared_snippets/galaxy_server_list.txt
Backport/2.9/docs2 (#62805) * Update pip module docs (#62359) * Clarifying pip module requirements in reference to #47361 * Further clarifying message with link to ansible_python_interpreter (cherry picked from commit d3ec5ca80f630ed8c78ea3fab73e0d2927a89b5e) * chore/doc-module: sts_assume_role.py (#62475) Update `Example` section with with the correct module usage. (cherry picked from commit a4a216640fc7efe436f3f09808500b52ff6a63cd) * Improve dconf documentation to include conversion problems (#62316) (cherry picked from commit 864928365ef000c187871e6874b520f0bd2bc97c) * Add examples for various inventory setups to the documentation (#62323) * Updates docs/docsite/rst/user_guide/intro_inventory.rst, closes #12480. * Use code-block and rename groups in inventory setup examples * Fix group name in inventory setup example Co-Authored-By: Sandra McCann <samccann@redhat.com> (cherry picked from commit 7047b66d345fc98c9ed163bbd47f3ee7c092f55b) * added networking porting guide info (#61999) * Update docs/docsite/rst/porting_guides/porting_guide_2.9.rst Co-Authored-By: Nathaniel Case <this.is@nathanielca.se> (cherry picked from commit 6d35f9026f521b3191a0ad5e5abbdeb1c46ec29e) * [docs] split collections into user and dev guide sections (#62363) (cherry picked from commit 7badeb6df0e644419adf2b5daf9545d448defe60) * fixed options (#62605) (cherry picked from commit 170b4e63ffa6115275cb78ebc0f68f8aa79f99a3) * ec2_vpc_subnet: Rename resource_tags > tags (#62663) Most of the AWS module documentation refers to `tags` and not `resource_tags`. This patch updates the documentation to match other AWS module documentation. 😉 Signed-off-by: Major Hayden <major@redhat.com> (cherry picked from commit cced1a3cd1e696cf5927ed248215d442dd6c1244) * [Docs] Document the resource module builder (#62222) (cherry picked from commit b17581a3075f571ed5b48126282e086a6efa30cc) * Fix link syntax and a typo in dev collections doc (#62650) (cherry picked from commit 2969614c2cb89151c3bf2487e0e1a1afe77cde96) * hcloud_volume: clarify volume size units (#62771) (cherry picked from commit 190b8fcd1cc413a8b3a6e5c9f3f74353990400dd) * ovirt_host update force doc (#62491) (cherry picked from commit 3b2b418aadc6ff2da4bae7f3d14ab8a51b207f77) * update example document for zabbix_action module (#62667) (cherry picked from commit 3299f29f7c7c4866baef78e8ae1d5272cd0b265d)
5 years ago
.. _using_collections:
Using collections in a Playbook
===============================
Once installed, you can reference a collection content by its fully qualified collection name (FQCN):
.. code-block:: yaml
- hosts: all
tasks:
- my_namespace.my_collection.mymodule:
option1: value
This works for roles or any type of plugin distributed within the collection:
.. code-block:: yaml
- hosts: all
tasks:
- import_role:
name: my_namespace.my_collection.role1
- my_namespace.mycollection.mymodule:
option1: value
- debug:
msg: '{{ lookup("my_namespace.my_collection.lookup1", 'param1')| my_namespace.my_collection.filter1 }}'
To avoid a lot of typing, you can use the ``collections`` keyword added in Ansible 2.8:
.. code-block:: yaml
- hosts: all
collections:
- my_namespace.my_collection
tasks:
- import_role:
name: role1
- mymodule:
option1: value
- debug:
msg: '{{ lookup("my_namespace.my_collection.lookup1", 'param1')| my_namespace.my_collection.filter1 }}'
This keyword creates a 'search path' for non namespaced plugin references. It does not import roles or anything else.
Notice that you still need the FQCN for non-action or module plugins.
.. seealso::
:ref:`developing_collections`
Develop or modify a collection.
:ref:`collections_galaxy_meta`
Understand the collections metadata structure.
`Mailing List <https://groups.google.com/group/ansible-devel>`_
The development mailing list
`irc.freenode.net <http://irc.freenode.net>`_
#ansible IRC chat channel