$ ansible-community -h
usage: ansible-community [-h] [--version]
optional arguments:
-h, --help show this help message and exit
--version show the version of the Ansible community package
ansible-community --version で Ansible community package のバージョンを表示するとこんな感じになります。
$ ansible-community --version
Ansible community version 6.0.0
ちなみに、ansible-community コマンド中身を調べるとこうなってました。
$ which ansible-community
/home/ansible/envs/a6/bin/ansible-community
$ cat /home/ansible/envs/a6/bin/ansible-community
#!/home/ansible/envs/a6/bin/python3.9
# -*- coding: utf-8 -*-
import re
import sys
from ansible_collections.ansible_community import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
$ vault write aws/config/root \access_key=$AWS_ACCESS_KEY_ID\secret_key=$AWS_SECRET_ACCESS_KEY\region=ap-northeaset-1
Success! Data written to: aws/config/root # 成功
$ aws ec2 describe-instances
An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials