Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
23ae68de
Commit
23ae68de
authored
Aug 30, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add docs on wait_for
parent
56649eb7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
1 deletions
+34
-1
rst/modules.rst
+1
-0
rst/modules/lineinfile.rst
+1
-1
rst/modules/wait_for.rst
+32
-0
No files found.
rst/modules.rst
View file @
23ae68de
...
...
@@ -73,6 +73,7 @@ Let's see what's available in the Ansible module library, out of the box:
.. include:: modules/supervisorctl.rst
.. include:: modules/template.rst
.. include:: modules/user.rst
.. include:: modules/wait_for.rst
.. include:: modules/virt.rst
.. include:: modules/yum.rst
...
...
rst/modules/lineinfile.rst
View file @
23ae68de
...
...
@@ -31,7 +31,7 @@ For other cases, see the copy or template modules.
| | | | line at the end of the file. |
+--------------------+----------+---------+----------------------------------------------------------------------------+
Example::
Example
action from Ansible :doc:`playbooks`
::
lineinfile name=/etc/selinux/config regexp=^SELINUX= line=SELINUX=disabled
lineinfile name=/etc/sudoers regexp="^#includedir" line="#includedir /etc/sudoers.d"
...
...
rst/modules/wait_for.rst
0 → 100644
View file @
23ae68de
.. _wait_for:
wait_for
````````
.. versionadded:: 0.7
Waits for a given port to become accessible (or inaccessible) on a local or remote server.
This is useful for when services are not immediately available after their init scripts return -- which is true of certain
Java application servers. It is also useful when starting guests with the virt module and
needing to pause until they are ready.
+--------------------+----------+-----------+----------------------------------------------------------------------------+
| parameter | required | default | comments |
+====================+==========+===========+============================================================================+
| host | no | 127.0.0.1 | hostname or IP to wait for |
+--------------------+----------+-----------+----------------------------------------------------------------------------+
| timeout | no | 300 | maximum number of seconds to wait |
+--------------------+----------+-----------+----------------------------------------------------------------------------+
| delay | no | 0 | number of seconds to wait before starting to poll |
+--------------------+----------+-----------+----------------------------------------------------------------------------+
| port | yes | | port to poll for openness or closedness |
+--------------------+----------+-----------+----------------------------------------------------------------------------+
| state | no | started | either 'started', or 'stopped' depending on whether the module should poll |
| | | | for the port being open or closed. |
+--------------------+----------+-----------+----------------------------------------------------------------------------+
Example from Ansible :doc:`playbooks`::
wait_for port=8080 delay=10
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment