*編輯打包壓縮內容集

  1. 編輯 galayxy.yml。
    [deyu1@kvm19 collections]$ vim mynmspace/mycollect/galaxy.yml
    [deyu1@kvm19 collections]$ grep deyu.wang mynmspace/mycollect/galaxy.yml
    - deyu1@deyu.wang
    repository: http://deyu.wang/repository
    documentation: http://docs.deyu.wang
    homepage: http://deyu.wang
    issues: http://deyu.wang/issue/tracker
    
  2. build 建立內容集打包壓縮檔。
    [deyu1@kvm19 collections]$ ansible-galaxy collection build mynmspace/mycollect/
    Created collection for mynmspace.mycollect at 
    /home/deyu1/ansible/collections/mynmspace-mycollect-1.0.0.tar.gz
    
  3. 查看結果,產生第一版的 mynmsapce-mycollect。
    [deyu1@kvm19 collections]$ ll
    total 8
    drwxr-xr-x. 3 deyu1 deyu1   23 Feb 14 16:57 mynmspace
    -rw-r--r--. 1 deyu1 deyu1 1396 Feb 14 19:12 mynmspace-mycollect-1.0.0.tar.gz
    -rw-r--r--. 1 deyu1 deyu1 1873 Feb 14 18:51 mynmspace.tar.gz
    [deyu1@kvm19 collections]$ rm mynmspace.tar.gz
    [deyu1@kvm19 collections]$ ll
    total 4
    drwxr-xr-x. 3 deyu1 deyu1   23 Feb 14 16:57 mynmspace
    -rw-r--r--. 1 deyu1 deyu1 1396 Feb 14 19:12 mynmspace-mycollect-1.0.0.tar.gz