Reborn�
2022-06-06 23:05
采纳率: 25%
浏览 9
已结题

ansible关于角色下载的问题

ansible关于roles下载的问题:
我在此路径下编写role的playbook
[alice@control ~]$ cat /home/alice/ansible/roles/down.yml

但是安装roles完成后,roles不在/home/alice/ansible/roles里面,而是在/home/alice/.ansible/roles里面,是怎么回事呢??这个/.ansible是怎么出来的,还是个隐藏文件
[alice@control ~]$ ansible-galaxy install -r /home/alice/ansible/roles/down.yml

[alice@control ~]$ ls /home/alice/.ansible/roles/
haproxy myphp

haproxy 和myphp本应该安装在/home/alice/ansible/roles下面才对呀?配置文件路径也排查过了
[alice@control ~]$ ls /home/alice/ansible/roles/
down.yml selinux timesync

ansible配置文件如下:

[alice@control ~]$ cat ansible/ansible.cfg
[defaults]
inventory = inventory
remote_user = alice
roles_path = roles
[privilege_escalation]
become=True
become_method=sudo
become_user=root
become_ask_pass=False

1条回答 默认 最新

相关推荐 更多相似问题