I’d look into something like ddns getting your dhcp server to update dns for you Then you can use the machine hostname?
Wake on LAN Etc From: ansible-project@googlegroups.com <ansible-project@googlegroups.com> On Behalf Of Günter Zöchbauer Sent: 17 February 2020 12:02 To: Ansible Project <ansible-project@googlegroups.com> Subject: [ansible-project] Re: List of hosts by MacAdress + Connexion if computer is in standby On Monday, February 17, 2020 at 10:46:49 AM UTC+1, Test Deux wrote: Hello, I am considering using Ansible to achieve a certain goal, but as I get more informed, I feel that Ansible may not be the right tool. Unless, perhaps, I missed some information? Result sought: Use Ansible to quickly install softwares on Ubuntu 18.4 computers in a computer room (school). https://docs.ansible.com/ansible/latest/modules/apt_module.html Questions: - Create a list of hosts uses IP addresses. But these addresses are not fixed, so can't I create the list of hosts by naming them with their MacAdress? I'm an Ansible beginner myself and there might be a better way but an idea is to address all machines and then use conditionals to assign tasks to MAC addresses https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html https://stackoverflow.com/questions/40224460/getting-mac-address-from-ansible-facts-in-role - Ansible seems to be designed for connection to servers, machines that are constantly on. But the classrooms computers are often in standby, when they are not used. I have tried some direct SSH connection and it seems that this cannot be done if the target computer is in standby. Is Ansible also facing this obstacle? There are ways to run Ansible in a pull way like https://docs.ansible.com/ansible/latest/cli/ansible-pull.html (there might be others) You can use Wake-on-LAN to wake the machines up to be able to manage them https://docs.ansible.com/ansible/latest/modules/wakeonlan_module.html (and shut them down again when done) Thank you in advance for your help :) Seb -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com<mailto:ansible-project+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/05980a93-a5fe-4919-9c8c-062c37cc0b94%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/05980a93-a5fe-4919-9c8c-062c37cc0b94%40googlegroups.com?utm_medium=email&utm_source=footer>. -- Stuart Lowe Cloud & Hosting Engineer Zen Internet Team: 01706 902009 Web: zen.co.uk Winner of 'Services Company of the Year' at the UK IT Industry Awards This message is private and confidential. If you have received this message in error, please notify us and remove it from your system. Zen Internet Limited may monitor email traffic data to manage billing, to handle customer enquiries and for the prevention and detection of fraud. We may also monitor the content of emails sent to and/or from Zen Internet Limited for the purposes of security, staff training and to monitor quality of service. Zen Internet Limited is registered in England and Wales, Sandbrook Park, Sandbrook Way, Rochdale, OL11 1RY Company No. 03101568 VAT Reg No. 686 0495 01 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/AM6PR01MB543255312F74286FB7B48796A8160%40AM6PR01MB5432.eurprd01.prod.exchangelabs.com.