ssh암복호화 해결 해야함

This commit is contained in:
2025-05-20 19:07:11 +09:00
parent b172945fc5
commit 3d4ba735c0
10 changed files with 285 additions and 5 deletions

View File

@ -1,3 +1,12 @@
from django.db import models
# Create your models here.
class AnsibleTask(models.Model):
name = models.CharField(max_length=200)
playbook_content = models.TextField() # ✅ YAML 문자열
inventory_content = models.TextField() # ✅ 인벤토리 형식 문자열
status = models.CharField(max_length=50, default='pending') # 'pending', 'running', 'success', 'failed', 'error'
output = models.TextField(blank=True) # ✅ 실행 결과 로그
created_at = models.DateTimeField(auto_now_add=True)
def __str__(self):
return f"{self.name} ({self.status})"