実行するときに渡す
ansible-playbook -i hosts.yml site.yml -u (username) --private-key (pass)
inventoryに書いておく
all: hosts: www1.example.com: www2.example.com: vars: ansible_user: (username) ansible_ssh_private_key_file: (pass)
せや!面倒だしパスワード認証のまま世界に晒せばいいんや!
実行するときに渡す
ansible-playbook -i hosts.yml site.yml -u (username) --private-key (pass)
inventoryに書いておく
all: hosts: www1.example.com: www2.example.com: vars: ansible_user: (username) ansible_ssh_private_key_file: (pass)
せや!面倒だしパスワード認証のまま世界に晒せばいいんや!