This is a repository containing the Ansible configuration for the laptop-fleet of the Chaostreff Osnabrück.
As the very first step, you have to install your own key onto the machines (hopefully also part of the authenticated_keys
for the playbook). Do that via:
ssh-copy-id user@ctreffosXX
. envsetup.source # to configure which inventory to use
ansible -m ping all # just to make you can reach them all
ansible-playbook site.yml --ask-become-pass
ansible-playbook power-block.yml --ask-become-pass
The inventory is using the mDNS advertised hostnames of the machines. While this saves us from configureing the inventovry with fixed IPv4 addresses, it may lead to problems, if the mDNS/WiFi-connection is not working properly. I would recommend you to start with the power-block.yml
-playbook and rerun it until all machines are reachable.
- Never use
run_once: true
, because due to the strategyfree
, the task may be completed multiple times on different hosts, as they may start at different point of time. - Never use reboot or other power actions during a run - as
power-block.yml
will retrict them and may cause the playbook to get stuck.