#author("2024-09-30T13:01:44+00:00","default:iseki","iseki") ** Ansible [#qe63e892] - RedHat が開発する構成管理ツール - 要するに,[[ssh]] を使用して複数のリモートマシンで一斉にバッチを走らせることができる *** 設定 [#a37127fb] **** /etc/ansible/ansible.cfg [#g1181efc] **** /etc/ansible/hosts [#f17e23ae] - inventory ファイル *** Trouble Shooting [#lb4d3df6] **** sftp transfer mechanism failed on [192.168.27.20] (sftp が失敗する) [#ce8de175] - 先方の /etc/ssh/sshd_config Subsystem sftp /usr/libexec/openssh/sftp-server - /etc/ansible/ansible.cfg [ssh_connection] scp_if_ssh=True を設定 - 実際に sftp でログインしてみる -- .bashrc の記述ミスでログインが失敗する場合もある(message too long: 余計な echo など) **** [WARNING]: Platform linux on host 192.168.27.32 is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change this. [#j470808d] - See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. - /etc/ansible/ansible.cfg [defaults] interpreter_python=/usr/bin/python3