這是本文件的舊版!


Ansible

# install dependency
ansible-galaxy install -r requirements.yml
# run playbook
ansible-playbook -i inventory.ini site.yml
# dry-run
ansible-playbook -i inventory.ini site.yml --check
# dry-run and print diff
ansible-playbook -i inventory.ini site.yml --check --limit ${ansible_host}