SSH の設定
参考:
ansible.cnf で ssh_config を設定する | DevelopersIO
Changing the SSH port with Ansible | dmsimard.com
How to handle SSH port changes with Ansible? – Server Fault
再起動
参考:
Ansible で再起動後にも playbook を継続する方法 | ばうあーろぐ
How to wait for server restart using Ansible? – Stack Overflow
aync / poll
参考:
Asynchronous Actions and Polling | Ansible Documentation [Official]
再接続
local_action
wait_for
set_fact
参考:
Ansible で再起動後にも playbook を継続する方法 | ばうあーろぐ
Delegation, Rolling Updates, and Local Actions | Ansible Documentation [Official]
wait_for – Waits for a condition before continuing | Ansible Documentation [Official]
set_fact – Set host facts from a task | Ansible Documentation [Official]
Agent Forwarding
参考:
Ansible で ssh-agent が働いてない時は – Qiita
Ansible で SSH Agent Forwarding が有効にならない – teratail
Using SSH Agent Forwarding with Ansible | Calazan.com
SSH Forwarding for Ansible | James Morgan
Running Ansible with SSH Agent Forwarding | Praneeth Turlapati
SSH Agent Forwarding with Ansible – Stack Overflow
多段 SSH
参考: