A.4. 컨테이너화된 Ansible Automation Platform 구성 문제 해결
이 정보를 사용하여 컨테이너화된 Ansible Automation Platform 구성 문제를 해결합니다.
Ansible Automation Platform 콘텐츠 오류를 시드하기 위해 사후 설치
이는 다음과 유사한 출력과 같을 수 있습니다.
TASK [infra.controller_configuration.projects : Configure Controller Projects | Wait for finish the projects creation] ***************************************
Friday 29 September 2023 11:02:32 +0100 (0:00:00.443) 0:00:53.521 ******
FAILED - RETRYING: [daap1.lan]: Configure Controller Projects | Wait for finish the projects creation (1 retries left).
failed: [daap1.lan] (item={'failed': 0, 'started': 1, 'finished': 0, 'ansible_job_id': '536962174348.33944', 'results_file': '/home/aap/.ansible_async/536962174348.33944', 'changed': False, '__controller_project_item': {'name': 'AAP Config-As-Code Examples', 'organization': 'Default', 'scm_branch': 'main', 'scm_clean': 'no', 'scm_delete_on_update': 'no', 'scm_type': 'git', 'scm_update_on_launch': 'no', 'scm_url': 'https://github.com/user/repo.git'}, 'ansible_loop_var': '__controller_project_item'}) => {"__projects_job_async_results_item": {"__controller_project_item": {"name": "AAP Config-As-Code Examples", "organization": "Default", "scm_branch": "main", "scm_clean": "no", "scm_delete_on_update": "no", "scm_type": "git", "scm_update_on_launch": "no", "scm_url": "https://github.com/user/repo.git"}, "ansible_job_id": "536962174348.33944", "ansible_loop_var": "__controller_project_item", "changed": false, "failed": 0, "finished": 0, "results_file": "/home/aap/.ansible_async/536962174348.33944", "started": 1}, "ansible_job_id": "536962174348.33944", "ansible_loop_var": "__projects_job_async_results_item", "attempts": 30, "changed": false, "finished": 0, "results_file": "/home/aap/.ansible_async/536962174348.33944", "started": 1, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
infra.controller_configuration.dispatch 역할은 30번의 재시도 횟수와 함께 비동기 루프를 사용하여 각 구성 유형을 적용하고, 재시도 사이의 기본 지연은 1초입니다. 구성이 크면 마지막 재시도가 발생하기 전에 모든 사항을 적용하기에 충분한 시간이 아닐 수 있습니다.
예를 들어 controller_configuration_async_delay 변수를 2초로 설정하여 재시도 지연을 늘립니다. 설치 프로그램 인벤토리 파일의 [all:vars] 섹션에서 이 변수를 설정할 수 있습니다.
설치 프로그램을 다시 실행하여 모든 것이 예상대로 작동하는지 확인합니다.