Operations IndexΒΆ
Operations are used to describe changes to make to systems in the inventory. You use them to define state and pyinfra will make any necessary changes to reach that state. They can be executed via the command line:
pyinfra my-host.net files.directory /opt/my_app,user=ubuntu
Or by creating a deploy:
files.directory(
{'Create app directory'},
'/opt/my_app',
user='ubuntu',
)
Operations are namespaced as different modules: