실행시
ansible -vvv localhost -m include_role -a "name=someName" --extra-vars="version=someVersion"
출력은
ansible 2.8.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Apr 9 2019, 14:30:50) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
Using /etc/ansible/ansible.cfg as config file
host_list declined parsing /etc/ansible/hosts as it did not pass it's verify_file() method
script declined parsing /etc/ansible/hosts as it did not pass it's verify_file() method
auto declined parsing /etc/ansible/hosts as it did not pass it's verify_file() method
Parsed /etc/ansible/hosts inventory source with ini plugin
ERROR! 'async_val' is not a valid attribute for a IncludeRole
The error appears to be in 'None': line 0, column 0, but may
be elsewhere in the file depending on the exact syntax problem.
(could not open file to display line)
async_val은 어디에 설정되어 있나요?역할이나 구성 파일에서 찾을 수 없습니다.
답변1
메시지는 Ansible의 내부에서 나옵니다. 이는 include_role을 임시 명령으로 사용하는 경우에만 발생합니다. 그것은분명히 최근에 고쳐진 것 같아버전 2.9용으로 출시되어야 합니다.