Ansible
構成管理ツール$ 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 .bashrcexport PATH=$PATH:$HOME/.local/bin$ source .bashrc$ ansible --version (core2.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 = Trueansible 4.x.x =ansible-core 2.11.x +いろいろ collection参考PDF、参考Ansibleのインストール、参考1、参考2$ 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参考1、参考2編集2021/9/6確認