![]() Note that with serial=0 or undefined this behaves the same as end_play. Causes the play to end for the current host without failing it.Įnd_batch (added in Ansible 2.12) causes the current batch (see serial) to end without failing the host(s). ssh + control persist)Įnd_host (added in Ansible 2.8) is a per-host variation of end_play. Reset_connection (added in Ansible 2.3) interrupts a persistent connection (i.e. It is mainly used internally and not recommended for general use.Ĭlear_facts (added in Ansible 2.1) causes the gathered facts for the hosts specified in the play’s list of hosts to be cleared, including the fact cache.Ĭlear_host_errors (added in Ansible 2.1) clears the failed state (if any) from hosts specified in the play’s list of hosts.Įnd_play (added in Ansible 2.2) causes the play to end without failing the host(s). Noop (added in Ansible 2.0) This literally does ‘nothing’. This is mainly useful when additional hosts are created and users wish to use them instead of using the _host module. aws), you can use the an inventory plugin instead of an inventory script). If the dynamic inventory script is using a cache, Ansible cannot know this and has no way of refreshing it (you can disable the cache or, if available for your specific inventory datasource (e.g. Refresh_inventory (added in Ansible 2.0) forces the reload of the inventory, which in the case of dynamic inventory scripts means they will be re-executed. Ansible inserts these tasks internally at certain points to implicitly trigger handler runs (after pre/post tasks, the final role execution, and the main tasks section of your plays). See the examples!įlush_handlers makes Ansible run any handler tasks which have thus far been notified. There is not an actual option named “free form”. This module takes a free form command, as a string.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |