今回始めての PR 提出だったのですが、このリポジトリの仕組みとしては、初めての場合はCIを走らせるのに承認が必要でした。いざ承認されて CI が走ったら失敗しました。今回の私の修正とは無関係なようでした。レビュアーの方に rebase を指示されたので rebase して force push しました。CONTRIBUTING.md にも merge ではなく rebase でという旨の記述がありました。
We like to keep our commit history clean, and will require resubmission of pull requests that contain merge commits. Use git pull --rebase, rather than git pull, and git rebase, rather than git merge.
- hosts: localhost
module_defaults:ansible.builtin.uri:force_basic_auth:trueuser: some_user
password: some_password
tasks:- name: Interact with a web service
ansible.builtin.uri:url: http://some.api.host/v1/whatever1
- name: Interact with a web service
ansible.builtin.uri:url: http://some.api.host/v1/whatever2
- name: Interact with a web service
ansible.builtin.uri:url: http://some.api.host/v1/whatever3
- hosts: localhost
tasks:- name: Interact with a web service
ansible.builtin.uri:url: http://some.api.host/v1/whatever1
force_basic_auth:true # タスクごとに指定user: some_user # タスクごとに指定password: some_password # タスクごとに指定- name: Interact with a web service
ansible.builtin.uri:url: http://some.api.host/v1/whatever2
force_basic_auth:true # タスクごとに指定user: some_user # タスクごとに指定password: some_password # タスクごとに指定- name: Interact with a web service
ansible.builtin.uri:url: http://some.api.host/v1/whatever3
force_basic_auth:true # タスクごとに指定user: some_user # タスクごとに指定password: some_password # タスクごとに指定
$ ansible-galaxy collection install ansible.utils netbox.netbox
Starting galaxy collection install process
Process install dependency map
Starting collection install process
Downloading https://galaxy.ansible.com/download/ansible-utils-2.6.1.tar.gz to /Users/sakana/.ansible/tmp/ansible-local-34764sxzv2emb/tmp850gohw3/ansible-utils-2.6.1-bf75vsy5
Installing 'ansible.utils:2.6.1' to '/Users/sakana/.ansible/collections/ansible_collections/ansible/utils'
Downloading https://galaxy.ansible.com/download/netbox-netbox-3.7.1.tar.gz to /Users/sakana/.ansible/tmp/ansible-local-34764sxzv2emb/tmp850gohw3/netbox-netbox-3.7.1-15y3wkfb
ansible.utils:2.6.1 was installed successfully
Installing 'netbox.netbox:3.7.1' to '/Users/sakana/.ansible/collections/ansible_collections/netbox/netbox'
netbox.netbox:3.7.1 was installed successfully
以下の通り無事にインストールできました。
$ ansible-galaxy collection list
# /Users/sakana/.ansible/collections/ansible_collections
Collection Version
------------- -------
ansible.utils 2.6.1
netbox.netbox 3.7.1
補足
コマンドのヘルプを見ると The collection(s) name とあります。
$ ansible-galaxy collection install -h
usage: ansible-galaxy collection install [-h] [-s API_SERVER] [--token API_KEY] [-c] [-v] [-f] [--clear-response-cache] [--no-cache] [-i] [-n | --force-with-deps] [-p COLLECTIONS_PATH]
[-r REQUIREMENTS] [--pre] [-U]
[collection_name ...]
positional arguments:
collection_name The collection(s) name or path/url to a tar.gz collection artifact. This is mutually exclusive with --requirements-file.
...(略)...