~/myansible,出現指定路徑不在 ansible 設定的內容集路徑中,但還是可以成功安裝。
[deyu1@kvm19 ansible]$ ansible-galaxy collection install \ http://dy.csie.cyut.edu.tw/materials/mynmspace-mycollect-1.0.0.tar.gz -p ~/myansible Downloading http://dy.csie.cyut.edu.tw/materials/mynmspace-mycollect-1.0.0.tar.gz to /home/deyu1/.ansible/tmp/ansible-local-2303w0b9nla7/tmpldyx_ivo/mynmspace-mycollect-1.0.0-rap_7_4q Starting galaxy collection install process [WARNING]: The specified collections path '/home/deyu1/myansible' is not part of the configured Ansible collections paths '/home/deyu1/ansible/collections'. The installed collection won't be picked up in an Ansible run. Process install dependency map Starting collection install process Installing 'mynmspace.mycollect:1.0.0' to '/home/deyu1/myansible/ansible_collections/mynmspace/mycollect' mynmspace.mycollect:1.0.0 was installed successfully
~/myansible/。
[deyu1@kvm19 ansible]$ tree ~/myansible/
/home/deyu1/myansible/
└── ansible_collections
└── mynmspace
└── mycollect
├── docs
├── FILES.json
├── MANIFEST.json
├── plugins
│ └── README.md
├── README.md
└── roles
6 directories, 4 files