Skip to content

ansible

Rico Jia edited this page Oct 9, 2023 · 1 revision

Ansible

Basics

  • become means sudo on target machine
  • Hosts: inidividual machines.
    • inventory: the hosts file hosts.ini, where you specify groups, hosts, etc.
  • group var: var applied to all members of the group
  • host vars: vars apply to a specific host
  • deployment: ansible-playbook -i hosts.ini configure_base.yml
Clone this wiki locally