ansible关于roles下载的问题:
我在此路径下编写role的playbook
[alice@control ~]$ cat /home/alice/ansible/roles/down.yml
- name: haproxy
src: http://study.lab0.example.com/roles/haproxy.tar - name: myphp
src: http://study.lab0.example.com/roles/myphp.tar
但是安装roles完成后,roles不在/home/alice/ansible/roles里面,而是在/home/alice/.ansible/roles里面,是怎么回事呢??这个/.ansible是怎么出来的,还是个隐藏文件
[alice@control ~]$ ansible-galaxy install -r /home/alice/ansible/roles/down.yml
- downloading role from http://study.lab0.example.com/roles/haproxy.tar
- extracting haproxy to /home/alice/.ansible/roles/haproxy
- haproxy was installed successfully
- downloading role from http://study.lab0.example.com/roles/myphp.tar
- extracting myphp to /home/alice/.ansible/roles/myphp
- myphp was installed successfully
[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