Machine setup playbooks. Installs and configures all the software I use.
-
Get/set the hostname for the machine you are configuring. Using DNS provider.
-
Add the hostname to the Ansible inventory file under the correct group (workstation/server)
-
Install ansible or setup SSH key login on the machine
-
Run
ansible-galaxy collection install community.general
To install the homebrew modules
-
Run
ansible-playbook --ask-become-pass site.yml
Limit the run to one machine:
ansible-playbook --ask-become-pass --limit xps-13-pop-os.test site.yml
To reconfigure git on everything:
ansible-playbook -i production site.yml --tags git
To reconfigure aliases and lsdeluxe on everything:
ansible-playbook --ask-become-pass --tags "aliases,lsd" site.yml
Configure workstations:
ansible-playbook -i production workstations.yml
Ad-hoc tasks are also possible:
ansible pve.test -i production -m ping
ansible pve.test -i production -m command -a '/sbin/reboot'