<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Here are a few fragments of an ansible playbook file (simple.yml)
which does part of what you want to do:</p>
<p>If the command lines are puzzling, you can get more information
from ansible-doc as in:</p>
<p>$ ansible-doc shell or $ ansible-doc register or $
ansible-doc debug</p>
<p>Ansible commands generally are written by different developers
and they have individualistic naming conventions.</p>
<p>However, Ansible is a decent tool among a collection of fair to
middling configuration tools.<br>
</p>
<p><font size="+1"><tt><br>
</tt><tt># ===== http.server</tt><tt><br>
</tt><tt><br>
</tt><tt> - name: test running of http.server</tt><tt><br>
</tt><tt> command: pgrep -f http.server</tt><tt><br>
</tt><tt> ignore_errors: yes</tt><tt><br>
</tt><tt> changed_when: false</tt><tt><br>
</tt><tt> register: http_pid # used to restart server if
necessary</tt><tt><br>
</tt><tt><br>
</tt><tt> - name: start simple http server in background w port
8000</tt><tt><br>
</tt><tt> become: no # If you do port 80, then need to run
as root</tt><tt><br>
</tt><tt># shell: cd {{ des_path }}; nohup python -m
http.server 80 \</tt><tt><br>
</tt><tt> shell: cd {{ des_path }}; nohup python -m
http.server \</tt><tt><br>
</tt><tt> --bind 192.168.50.60 &</tt><tt><br>
</tt><tt># --directory /home/user1/Downloads/Atomic</tt><tt><br>
</tt><tt># The cd in front of nohup python sets the home
directory </tt><tt><br>
</tt><tt> when: http_pid.stdout == ""</tt><tt><br>
</tt><tt><br>
</tt><tt> - name: get pid of http.server</tt><tt><br>
</tt><tt> shell: pgrep -f http.server</tt><tt><br>
</tt><tt> ignore_errors: yes</tt><tt><br>
</tt><tt> changed_when: false</tt><tt><br>
</tt><tt> register: http_pid</tt><tt><br>
</tt><tt><br>
</tt><tt> - debug:</tt><tt><br>
</tt><tt> var: http_pid.stdout</tt><tt><br>
</tt></font><br>
</p>
<div class="moz-cite-prefix">On 6/12/20 9:48 AM, IT1 Stuart Blake
Tener, USNR wrote:<br>
</div>
<blockquote type="cite"
cite="mid:20200612104845.Horde.CLKVOsRm6f7YMhdInqNw-6y@mgtmail.com">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<p>List members,<br>
<br>
I have done a number of web searches and am interested in
gaining some insights into what choices I have in implementing
iPXE to boot ISO files directly (I have read several postings
that were 6 to 10 years old in this area but no code was really
given just oh I did this, I did that). I had asked in an IRC
channel a while ago (they are so useless, people ignoring your
question and trying to find a different question you should be
asking because that is what they can answer), and got a bunch of
discouraging replies. A huge discussion ensued having nothing to
do with what I had originally asked, and I abandoned obtaining
any help there.<br>
<br>
I'd like to setup a server (as a virtual machine for
portability, but would be fine starting as a physical server to
decrease complication) with a singular purpose of providing
iPXE/PXE booting services on my home lab network. I'd like to be
able to have a directory or that into which I can plop an ISO
file and then have some sort of menu generated on the fly that
notices all ISOs in that directory and offers a menu that is
presented whence someone boots iPXE/PXE via the network. I'd
also like to have a sub-menu of permanent ISO choices with
descriptions that can be selected from as well. It is my
understanding that iPXE/PXE can do this quite easily, but then I
was given a ton of reasons on the IRC why it would not work so I
gave up in frustration trying to sort "IRC wheat from IRC
chaff".<br>
<br>
My thought is to create a private 192.168.100.0/24 network in
this environment I propose, and for the server to have TFTP,
DNS, and whatever else is requisite installed there within. I
think I'd like to use Debian to do it, but am open to whatever
distribution people think will make this most easiest.<br>
<br>
Thanks in advance and I hope everyone stays safe from looting
thugs and healthy from the pandemic.<br>
<br>
<br>
Very Respectfully,<br>
<br>
Stuart<br>
<br>
</p>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ipxe-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ipxe-devel@lists.ipxe.org">ipxe-devel@lists.ipxe.org</a>
<a class="moz-txt-link-freetext" href="https://lists.ipxe.org/mailman/listinfo/ipxe-devel">https://lists.ipxe.org/mailman/listinfo/ipxe-devel</a>
</pre>
</blockquote>
</body>
</html>