Changes between Version 37 and Version 38 of GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute


Ignore:
Timestamp:
03/15/15 21:44:51 (9 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute

    v37 v38  
    194194}}}
    195195 a. Using the above Ansible modules, reproduce the steps in the HelloGENI install script for the `server` node.  As you find a command that works, use it to construct a `hello-server.yml` playbook.  (For the solution see: HERE)
     196{{{
     197#!div style="background: #ffd; border: 3px ridge; width: 800px;"
     198   {{{
     199#!python
     200---
     201- name: Configure server
     202  hosts: server
     203  sudo: True
     204  tasks:
     205   - name: install apache2
     206     apt: name=apache2 update_cache=yes
     207   - name: install iperf
     208     apt: name=iperf update_cache=yes
     209   - name: /usr/sbin/a2enmod status
     210# INSERT COMMAND HERE
     211   - name: check /etc/apache2/mods-enabled/status.conf file is absent
     212# INSERT COMMAND HERE
     213   - name: copy website/index.html into /var/www
     214# INSERT COMMAND HERE
     215   - name: copy the website/graphics directory into /var/www
     216# INSERT COMMAND HERE
     217   - name: rm -rf /var/www/html
     218# INSERT COMMAND HERE
     219   - name: Make simlink to webfiles
     220# INSERT COMMAND HERE
     221   - name: restart apache2 service
     222# INSERT COMMAND HERE
     223   - name: Make sure /etc/apache2/conf.d/extendedstatus file contains "ExtendedStatus On"
     224# INSERT COMMAND HERE
     225   - name: Make sure /etc/apache2/sites-available/default file contains "<Location ...> ..."
     226# INSERT COMMAND HERE
     227   - name: create directory for iperf logs in /var/www/iperflogs with permissions of 755
     228# INSERT COMMAND HERE
     229   }}}
     230}}}
    196231 a. Run both the `client` and `server` playbooks on your nodes. 
    197232 a. Browse to the server node (as in the original HelloGENI example).  Do you see the same behavior you saw when you ran the original HelloGENI exercise?