1. ```console pip install ansible-core --user ``` 2. create an inventory file with a `localhost` entry in it with `connection=local` param 3. create a playbook `install-apps.yml` it'd look smth like ```yaml - name: Install OS-level apps hosts: all become: yes tasks: - name: Configure repositories apt_repository: ... - name: Install apps apt: name: - - ... ``` 4. The invocation would look like: ```console ansible-playbook -i inventory -K install-apps.yml ``` Ref: https://docs.ansible.com/ansible/devel/user_guide/index.html Ref: https://docs.ansible.com/ansible/devel/modules/apt_module.html Ref: https://docs.ansible.com/ansible/devel/modules/apt_repository_module.html
pip install ansible-core --userlocalhostentry in it withconnection=localparaminstall-apps.ymlit'd look smth like
ansible-playbook -i inventory -K install-apps.ymlRef: https://docs.ansible.com/ansible/devel/user_guide/index.html
Ref: https://docs.ansible.com/ansible/devel/modules/apt_module.html
Ref: https://docs.ansible.com/ansible/devel/modules/apt_repository_module.html