This commit is contained in:
felixfontein 2025-08-03 11:13:49 +00:00
parent 3f9935fe11
commit 30d40c553f
2 changed files with 4 additions and 2 deletions

View File

@ -606,10 +606,12 @@ see <a class="reference internal" href="#ansible-collections-community-docker-do
<td><div class="ansible-option-cell"><p>Service replication mode.</p> <td><div class="ansible-option-cell"><p>Service replication mode.</p>
<p>Service will be removed and recreated when changed.</p> <p>Service will be removed and recreated when changed.</p>
<p>Corresponds to the <code class="docutils literal notranslate"><span class="pre">--mode</span></code> option of <code class="docutils literal notranslate"><span class="pre">docker</span> <span class="pre">service</span> <span class="pre">create</span></code>.</p> <p>Corresponds to the <code class="docutils literal notranslate"><span class="pre">--mode</span></code> option of <code class="docutils literal notranslate"><span class="pre">docker</span> <span class="pre">service</span> <span class="pre">create</span></code>.</p>
<p>The value <code class="ansible-value docutils literal notranslate"><span class="pre">replicated-job</span></code> was added in community.docker 4.7.0, and requires API version &gt;= 1.41 and Docker SDK for Python &gt;= 6.0.0.</p>
<p class="ansible-option-line"><strong class="ansible-option-choices">Choices:</strong></p> <p class="ansible-option-line"><strong class="ansible-option-choices">Choices:</strong></p>
<ul class="simple"> <ul class="simple">
<li><p><code class="ansible-option-default-bold docutils literal notranslate"><strong><span class="pre">&quot;replicated&quot;</span></strong></code> <span class="ansible-option-choices-default-mark">← (default)</span></p></li> <li><p><code class="ansible-option-default-bold docutils literal notranslate"><strong><span class="pre">&quot;replicated&quot;</span></strong></code> <span class="ansible-option-choices-default-mark">← (default)</span></p></li>
<li><p><code class="ansible-option-choices-entry docutils literal notranslate"><span class="pre">&quot;global&quot;</span></code></p></li> <li><p><code class="ansible-option-choices-entry docutils literal notranslate"><span class="pre">&quot;global&quot;</span></code></p></li>
<li><p><code class="ansible-option-choices-entry docutils literal notranslate"><span class="pre">&quot;replicated-job&quot;</span></code></p></li>
</ul> </ul>
</div></td> </div></td>
</tr> </tr>
@ -854,7 +856,7 @@ see <a class="reference internal" href="#ansible-collections-community-docker-do
<div class="ansibleOptionAnchor" id="parameter-replicas"></div><p class="ansible-option-title" id="ansible-collections-community-docker-docker-swarm-service-module-parameter-replicas"><strong>replicas</strong></p> <div class="ansibleOptionAnchor" id="parameter-replicas"></div><p class="ansible-option-title" id="ansible-collections-community-docker-docker-swarm-service-module-parameter-replicas"><strong>replicas</strong></p>
<a class="ansibleOptionLink" href="#parameter-replicas" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p> <a class="ansibleOptionLink" href="#parameter-replicas" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
</div></td> </div></td>
<td><div class="ansible-option-cell"><p>Number of containers instantiated in the service. Valid only if <code class="ansible-option-value docutils literal notranslate"><a class="reference internal" href="#ansible-collections-community-docker-docker-swarm-service-module-parameter-mode"><span class="std std-ref"><span class="pre">mode=replicated</span></span></a></code>.</p> <td><div class="ansible-option-cell"><p>Number of containers instantiated in the service. Valid only if <code class="ansible-option-value docutils literal notranslate"><a class="reference internal" href="#ansible-collections-community-docker-docker-swarm-service-module-parameter-mode"><span class="std std-ref"><span class="pre">mode=replicated</span></span></a></code> or <code class="ansible-option-value docutils literal notranslate"><a class="reference internal" href="#ansible-collections-community-docker-docker-swarm-service-module-parameter-mode"><span class="std std-ref"><span class="pre">mode=replicated-job</span></span></a></code>.</p>
<p>If set to <code class="ansible-value docutils literal notranslate"><span class="pre">-1</span></code>, and service is not present, service replicas will be set to <code class="ansible-value docutils literal notranslate"><span class="pre">1</span></code>.</p> <p>If set to <code class="ansible-value docutils literal notranslate"><span class="pre">-1</span></code>, and service is not present, service replicas will be set to <code class="ansible-value docutils literal notranslate"><span class="pre">1</span></code>.</p>
<p>If set to <code class="ansible-value docutils literal notranslate"><span class="pre">-1</span></code>, and service is present, service replicas will be unchanged.</p> <p>If set to <code class="ansible-value docutils literal notranslate"><span class="pre">-1</span></code>, and service is present, service replicas will be unchanged.</p>
<p>Corresponds to the <code class="docutils literal notranslate"><span class="pre">--replicas</span></code> option of <code class="docutils literal notranslate"><span class="pre">docker</span> <span class="pre">service</span> <span class="pre">create</span></code>.</p> <p>Corresponds to the <code class="docutils literal notranslate"><span class="pre">--replicas</span></code> option of <code class="docutils literal notranslate"><span class="pre">docker</span> <span class="pre">service</span> <span class="pre">create</span></code>.</p>

File diff suppressed because one or more lines are too long