Operations¶
Operations either describe an end state for hosts in the inventory (declarative — pyinfra checks current state and only acts if the host differs) or execute specific commands directly (imperative — runs every time). Most operations are declarative; see Using Operations for the difference. All operations accept a set of global arguments and are grouped as Python modules.
Want a new operation? Check out the writing operations guide.