構成管理ツール
$ brew install ansible
$ ansible --version (core 2.11.4)
$ sudo apt-get install python3-pip
$ pip3 --version (20.3.4)
$ pip3 install --user ansible
$ pip3 show -f ansible | grep 'site-packages' (~/.local/lib/python2.7/site-packages)
$ ~/.local/bin/ansible --version
$ vi .bashrc
export PATH=$PATH:$HOME/.local/bin
$ source .bashrc
$ ansible --version (core 2.11.1)
ansible [core 2.11.1]
config file = None
configured module search path = ['/home/hiroyuki/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/hiroyuki/.local/lib/python3.8/site-packages/ansible
ansible collection location = /home/hiroyuki/.ansible/collections:/usr/share/ansible/collections
executable location = /home/hiroyuki/.local/bin/ansible
python version = 3.8.8 (default, Feb 27 2021, 12:09:14) [GCC 10.2.1 20210208]
jinja version = 3.0.1
libyaml = True
ansible 4.x.x = ansible-core 2.11.x + いろいろ collection
$ cd github
$ git clone https://github.com/kohbis/mac-ansible
$ cd mac-ansible
$ vi localost.yml rolesは、homebrewだけ残す
$ vi group_vars/localhost.yml インストールするパッケージだけ残す
$ vi roles/homebrew/tasks/main.yml homebrew updateとtagsのhomebrewだけ残す
$ ansible-playbook -i hosts -vv localhost.yml
2021/9/6確認