Skip to content

Commit 841898c

Browse files
committed
Site update
1 parent b73725f commit 841898c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

2023/08/11/local-management-with-rex/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ <h2 id="disable-ssh-per-task-with-no_ssh-task"><a href="#disable-ssh-per-task-wi
170170

171171
<p>The <code>no_ssh</code> command hints individual tasks to not use SSH:</p>
172172

173-
<pre><code class="highlight">no_ssh <span class="synStatement">task</span> <span class="synIdentifier">$task_name</span>, <span class="synKeyword">sub </span>{
173+
<pre><code class="highlight"><span class="synStatement">no_ssh</span> <span class="synStatement">task</span> <span class="synIdentifier">$task_name</span>, <span class="synKeyword">sub </span>{
174174
... <span class="synComment"># task steps</span>
175175
};
176176
</code></pre>
@@ -180,7 +180,7 @@ <h2 id="disable-ssh-per-task-with-no_ssh-task"><a href="#disable-ssh-per-task-wi
180180

181181
<pre><code class="highlight"><span class="synStatement">task</span> <span class="synIdentifier">$task_name</span>, <span class="synKeyword">sub </span>{
182182
... <span class="synComment"># task steps</span>
183-
}, { <span class="synString">no_ssh</span> =&gt; <span class="synNumber">1</span> };
183+
}, { <span class="synStatement">no_ssh</span> =&gt; <span class="synNumber">1</span> };
184184
</code></pre>
185185

186186
<p>This approach works great when some tasks apply solely to the local machine, or
@@ -195,7 +195,7 @@ <h2 id="disable-ssh-globally-with-no_ssh"><a href="#disable-ssh-globally-with-no
195195
<p>In case none of the tasks need SSH to connect to their targets, the <code>no_ssh</code>
196196
command can disable it globally:</p>
197197

198-
<pre><code class="highlight">no_ssh;
198+
<pre><code class="highlight"><span class="synStatement">no_ssh</span>;
199199

200200
<span class="synStatement">task</span> <span class="synIdentifier">$task_name</span>, <span class="synKeyword">sub </span>{
201201
... <span class="synComment"># task steps</span>

0 commit comments

Comments
 (0)