본문 바로가기

Automation Tools/Ansible

[ansible AWX] 지나간 Jobs 삭제하기

반응형

AWX Version : 17:0.1

Docker

$ docker ps
CONTAINER ID   IMAGE                          COMMAND                  CREATED        STATUS                  PORTS                                                                         NAMES
513c89b46290   ansible/awx:17.0.1             "/usr/bin/tini -- /u…"   3 months ago   Up 2 months             8052/tcp                                                                      awx_task
2c1410976fb7   ansible/awx:17.0.1             "/usr/bin/tini -- /b…"   3 months ago   Up 2 months             0.0.0.0:80->8052/tcp                                                          awx_web
7c0247ceab04   postgres:12                    "docker-entrypoint.s…"   3 months ago   Up 2 months             5432/tcp                                                                      awx_postgres
0b71825f2ef1   redis                          "docker-entrypoint.s…"   3 months ago   Up 2 months             6379/tcp

 

 

 

awx_task 에서 작업

  • 30일 이전 Jobs 삭제
$ docker exec -it awx_task awx-manage cleanup_jobs --days=30

 

반응형