{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f79b3ebd-9caf-4c36-bde3-ca73c8d46e82",
    "slug": "deploy-debian-as-an-ansible-control-node",
    "name": "Debian Ansible Control Node",
    "description": "Run Ansible playbooks from a persistent Debian 12 box",
    "url": "https://railway.com/deploy/deploy-debian-as-an-ansible-control-node",
    "upstream": {
      "image": "ghcr.io/onepush-dev/debian-web-terminal:12-ttyd1.7.7"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Debian",
      "source": {
        "image": "ghcr.io/onepush-dev/debian-web-terminal:12-ttyd1.7.7"
      },
      "needs_volume": true,
      "volume_mount_path": "/home",
      "tcp_ports": [
        2222
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "Debian",
      "description": "Container timezone.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "Debian",
      "description": "Port of the ttyd web terminal behind the public domain (7681).",
      "secret": false,
      "strategy": "default",
      "default": "7681"
    },
    {
      "key": "SSH_PORT",
      "service": "Debian",
      "description": "Port sshd listens on; Railway's TCP proxy forwards to it (2222).",
      "secret": false,
      "strategy": "default",
      "default": "2222"
    },
    {
      "key": "TMUX_SESSION",
      "service": "Debian",
      "description": "Name of the tmux session shared by browser and SSH.",
      "secret": false,
      "strategy": "default",
      "default": "main"
    },
    {
      "key": "SUDO_NOPASSWD",
      "service": "Debian",
      "description": "Let the terminal user run sudo without a password.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TERMINAL_USER",
      "service": "Debian",
      "description": "Linux user for browser and SSH logins (default debian).",
      "secret": false,
      "strategy": "default",
      "default": "debian"
    },
    {
      "key": "TERMINAL_TITLE",
      "service": "Debian",
      "description": "Browser tab title of the web terminal.",
      "secret": false,
      "strategy": "default",
      "default": "Debian 12"
    },
    {
      "key": "TTYD_FONT_SIZE",
      "service": "Debian",
      "description": "Font size of the browser terminal.",
      "secret": false,
      "strategy": "default",
      "default": "15"
    },
    {
      "key": "TMUX_AUTO_ATTACH",
      "service": "Debian",
      "description": "Attach interactive SSH logins to the shared tmux session.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TTYD_MAX_CLIENTS",
      "service": "Debian",
      "description": "Max simultaneous browser clients (0 = unlimited).",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "SSH_PASSWORD_AUTH",
      "service": "Debian",
      "description": "Allow SSH password logins; set false for key-only SSH.",
      "secret": true,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TERMINAL_PASSWORD",
      "service": "Debian",
      "description": "Login password for the web terminal and SSH, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "deploy-debian-as-an-ansible-control-node"
      }
    },
    "cli": "railway deploy --template deploy-debian-as-an-ansible-control-node",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f79b3ebd-9caf-4c36-bde3-ca73c8d46e82",
            "serializedConfig": {
              "services": {
                "247c8673-5f47-4602-8118-b49054a9bdd2": {
                  "icon": "https://github.com/debian.png",
                  "name": "Debian",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/onepush-dev/debian-web-terminal:12-ttyd1.7.7"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Container timezone.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port of the ttyd web terminal behind the public domain (7681).",
                      "defaultValue": "7681"
                    },
                    "SSH_PORT": {
                      "isOptional": false,
                      "description": "Port sshd listens on; Railway's TCP proxy forwards to it (2222).",
                      "defaultValue": "2222"
                    },
                    "TMUX_SESSION": {
                      "isOptional": false,
                      "description": "Name of the tmux session shared by browser and SSH.",
                      "defaultValue": "main"
                    },
                    "SUDO_NOPASSWD": {
                      "isOptional": false,
                      "description": "Let the terminal user run sudo without a password.",
                      "defaultValue": "true"
                    },
                    "TERMINAL_USER": {
                      "isOptional": false,
                      "description": "Linux user for browser and SSH logins (default debian).",
                      "defaultValue": "debian"
                    },
                    "TERMINAL_TITLE": {
                      "isOptional": false,
                      "description": "Browser tab title of the web terminal.",
                      "defaultValue": "Debian 12"
                    },
                    "TTYD_FONT_SIZE": {
                      "isOptional": false,
                      "description": "Font size of the browser terminal.",
                      "defaultValue": "15"
                    },
                    "TMUX_AUTO_ATTACH": {
                      "isOptional": false,
                      "description": "Attach interactive SSH logins to the shared tmux session.",
                      "defaultValue": "true"
                    },
                    "TTYD_MAX_CLIENTS": {
                      "isOptional": false,
                      "description": "Max simultaneous browser clients (0 = unlimited).",
                      "defaultValue": "0"
                    },
                    "SSH_PASSWORD_AUTH": {
                      "isOptional": false,
                      "description": "Allow SSH password logins; set false for key-only SSH.",
                      "defaultValue": "true"
                    },
                    "TERMINAL_PASSWORD": {
                      "isOptional": false,
                      "description": "Login password for the web terminal and SSH, generated per deploy.",
                      "defaultValue": "{{TERMINAL_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "2222": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:7681": {
                        "port": 7681
                      }
                    }
                  },
                  "volumeMounts": {
                    "247c8673-5f47-4602-8118-b49054a9bdd2": {
                      "mountPath": "/home"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-31T04:14:55.520Z",
  "generator_version": "0.1.0"
}
