### Install Docker (Bash) Source: https://github.com/roq-trading/roq-ansible/blob/master/README.md Installs Docker on a Debian-based system using apt. This is a prerequisite for using Docker as a container runtime. ```bash sudo apt install docker.io ``` -------------------------------- ### Install Podman (Bash) Source: https://github.com/roq-trading/roq-ansible/blob/master/README.md Installs Podman on a Debian-based system using apt. This is a prerequisite for using Podman as a container runtime. ```bash sudo apt install podman ``` -------------------------------- ### Install Ansible with Apt (Bash) Source: https://github.com/roq-trading/roq-ansible/blob/master/README.md Installs Ansible on a Debian-based system using apt. This is an alternative to installing via Conda. ```bash sudo apt install ansible ``` -------------------------------- ### Install Ansible with Conda (Bash) Source: https://github.com/roq-trading/roq-ansible/blob/master/README.md Installs Ansible using the Conda package manager, freezing installed packages to ensure stability. This is for local installation. ```bash conda install --freeze-installed -y ansible ``` -------------------------------- ### Start a Systemd Service (Bash) Source: https://github.com/roq-trading/roq-ansible/blob/master/README.md Starts a systemd service named 'deribit'. Requires sudo if managing system-level services. ```bash systemctl start deribit ``` -------------------------------- ### Ansible Inventory File Example Source: https://github.com/roq-trading/roq-ansible/blob/master/README.md Defines a basic Ansible inventory file. It specifies the target host 'server' with its IP address and SSH user, and uses 'become_user' for elevated privileges when scope is 'system'. ```ini [example] server ansible_host="a.b.c.d" ansible_user="ansible" become_user="root" ``` -------------------------------- ### Ansible Inventory File Local Example Source: https://github.com/roq-trading/roq-ansible/blob/master/README.md Defines an Ansible inventory file for local execution. It specifies 'localhost' as the target host and the current user, not requiring elevated privileges. ```ini [example] server ansible_host="localhost" ansible_user="my_user_id" ``` -------------------------------- ### Run Ansible Playbook with Elevated Privileges (Bash) Source: https://github.com/roq-trading/roq-ansible/blob/master/README.md Executes an Ansible playbook using 'ansible-playbook'. The '--ask-become-pass' flag prompts for the password required for elevated privileges (e.g., when systemd.scope is 'system'). ```bash ansible-playbook -i example site.yml --ask-become-pass ``` -------------------------------- ### Tail Systemd Service Logs (Bash) Source: https://github.com/roq-trading/roq-ansible/blob/master/README.md Continuously displays logs for the systemd service 'deribit'. Requires sudo if managing system-level services. ```bash journalctl -f -u deribit ``` -------------------------------- ### Run Ansible Playbook Without Elevated Privileges (Bash) Source: https://github.com/roq-trading/roq-ansible/blob/master/README.md Executes an Ansible playbook without requiring elevated privileges. This is typically used when systemd.scope is set to 'user'. ```bash ansible-playbook -i example site.yml ``` -------------------------------- ### Reset Failed Systemd Service (Bash) Source: https://github.com/roq-trading/roq-ansible/blob/master/README.md Resets a failed systemd service named 'deribit'. Requires sudo if managing system-level services. ```bash systemctl reset-failed deribit ``` -------------------------------- ### Check Systemd Service Status (Bash) Source: https://github.com/roq-trading/roq-ansible/blob/master/README.md Checks the status of a systemd service named 'deribit'. Requires sudo if managing system-level services. ```bash systemctl status deribit ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.