docker-compose run --rm ansible bash
ansible的配置文件位于/etc/ansible/ansible.cfg,可以通过ansible-config dump命令查看。
/etc/ansible/ansible.cfg
ansible-config dump
示例配置文件如下:
[defaults] inventory = ./hosts host_key_checking = False remote_user = root roles_path = ./roles
← ansible collection ansible roles →