我有一个非常奇怪的问题无法解决。已经调试了4个小时但是没有任何进展,以前从未遇到过这样的事情。
\n安西布的资料:
\nansible [core 2.11.5]\n config file = /Users/igor/Projects/infrastructure/mint2/ansible.cfg\n configured module search path = ['/Users/igor/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']\n ansible python module location = /Users/igor/.local/share/virtualenvs/mint2-x8LdeqZ_/lib/python3.9/site-packages/ansible\n ansible collection location = /Users/igor/.ansible/collections:/usr/share/ansible/collections\n executable location = /Users/igor/.local/share/virtualenvs/mint2-x8LdeqZ_/bin/ansible\n python version = 3.9.6 (default, Jun 28 2021, 19:24:41) [Clang 12.0.5 (clang-1205.0.22.9)]\n jinja version = 3.0.1\n libyaml = False\nRun Code Online (Sandbox Code Playgroud)\n这是一个示例剧本:
\n---\n- hosts: somehost\n gather_facts: yes\n vars_files:\n - host_vars/somehost/common/common.yml\n - host_vars/somehost/backup/backup.yml\n pre_tasks:\n - name: Prepare | Remove AppArmor\n apt:\n name: apparmor\n state: absent\n \n - name: …Run Code Online (Sandbox Code Playgroud)