Ansible playbooks for configuring MAC Formula machines. Playbooks are ran from an arbitrary control machine, not the machines you are provisioning.
- Python3
- Ansible
A virtual environment is recommended.
- SSH server running (sshd)
- User account accessible via SSH key authentication
- Python3
-
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate -
Install Ansible and dependencies:
pip install ansible ansible-galaxy install -r requirements.yml
-
Set up SSH key authentication to target machines:
ssh-copy-id macformula@<target-ip>
Run the main playbook:
ansible-playbook -i inventory site.yamlOr if you haven't set up SSH keys, specify a password:
ansible-playbook -i inventory site.yaml --ask-pass