ansible edit 수정
All checks were successful
Build And Test / build-and-push (push) Successful in 4m16s
All checks were successful
Build And Test / build-and-push (push) Successful in 4m16s
This commit is contained in:
parent
0b0343d8ce
commit
fd3ab674c3
@ -0,0 +1,23 @@
|
|||||||
|
# Generated by Django 4.2.14 on 2025-04-09 13:05
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('ansible_manager', '0003_ansiblejob_delete_ansibletask'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='ansiblejob',
|
||||||
|
name='inventory_content',
|
||||||
|
field=models.TextField(blank=True, null=True),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='ansiblejob',
|
||||||
|
name='playbook_content',
|
||||||
|
field=models.TextField(blank=True, null=True),
|
||||||
|
),
|
||||||
|
]
|
@ -11,8 +11,8 @@ class AnsibleJob(models.Model):
|
|||||||
]
|
]
|
||||||
|
|
||||||
name = models.CharField(max_length=200)
|
name = models.CharField(max_length=200)
|
||||||
playbook_content = models.TextField(help_text="Ansible Playbook YAML 내용")
|
playbook_content = models.TextField(blank=True, null=True) # Ansible Playbook YAML 내용
|
||||||
inventory_content = models.TextField(help_text="Ansible Inventory 내용")
|
inventory_content = models.TextField(blank=True, null=True) # Ansible Inventory 내용
|
||||||
created_at = models.DateTimeField(auto_now_add=True)
|
created_at = models.DateTimeField(auto_now_add=True)
|
||||||
updated_at = models.DateTimeField(auto_now=True)
|
updated_at = models.DateTimeField(auto_now=True)
|
||||||
status = models.CharField(max_length=20, choices=STATUS_CHOICES, default='PENDING')
|
status = models.CharField(max_length=20, choices=STATUS_CHOICES, default='PENDING')
|
||||||
|
@ -13,5 +13,6 @@
|
|||||||
{{ form.inventory_content }}
|
{{ form.inventory_content }}
|
||||||
|
|
||||||
<button type="submit" class="btn btn-primary">Create</button>
|
<button type="submit" class="btn btn-primary">Create</button>
|
||||||
|
<a href="{% url 'ansible_manager:job_list' %}" class="btn btn-secondary">Cancel</a>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user