From 6ce554b57535fc24f2cccd3fbc4f63ccb3b8e0fe Mon Sep 17 00:00:00 2001 From: Yota Hamada Date: Sat, 6 Jul 2024 22:26:56 +0900 Subject: [PATCH] Fix doc (#606) --- docs/source/yaml_format.rst | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/source/yaml_format.rst b/docs/source/yaml_format.rst index 562a9cbc..d2d2e84c 100644 --- a/docs/source/yaml_format.rst +++ b/docs/source/yaml_format.rst @@ -345,24 +345,6 @@ Example: Best regards, -Command Execution over SSH --------------------------- - -The `ssh` executor allows us to execute commands on remote hosts over SSH. - -.. code-block:: yaml - - steps: - - name: step1 - executor: - type: ssh - config: - user: dagu - ip: XXX.XXX.XXX.XXX - port: 22 - key: /Users/dagu/.ssh/private.pem - command: /usr/sbin/ifconfig - Command Substitution ~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -431,6 +413,24 @@ You can define functions in the DAG file and call them in steps. The ``params`` param1: 1 param2: 2 +Command Execution over SSH +-------------------------- + +The `ssh` executor allows us to execute commands on remote hosts over SSH. + +.. code-block:: yaml + + steps: + - name: step1 + executor: + type: ssh + config: + user: dagu + ip: XXX.XXX.XXX.XXX + port: 22 + key: /Users/dagu/.ssh/private.pem + command: /usr/sbin/ifconfig + JSON Processing -----------------