Ansible repository to setup different desktop machines and experiment with Ansible.
Feel free to collaborate if you want to improve this project.
Before using this repository, make sure you have installed:
- Git
- Ansible (>= 2.14 recommended)
- Homebrew (optional, for certain tasks)
- Taskfile (optional, recommended for automation)
- Clone the repository:
git clone https://github.com/Tekiroz/ansible-desktop.git
cd ansible-desktop- Install Ansible roles and collections using Taskfile:
task setupThis command installs:
Required roles from requirements.yml (including geerlingguy.docker)
Required collections from requirements.yml (e.g., community.general)
- Enable/Disable roles:
- By default, the playbook does not apply any roles.
- Edit local.yml (or your playbook) to enable the roles you want.
- Verify that variables passed to each role are correct.
Run the full playbook:
ansible-playbook -K local.yml
-K prompts for the sudo password if needed.
ansible-playbook -K local.yml --tags commons
ansible-playbook -K local.yml --tags docker
ansible-playbook -K local.yml --tags brew