Changes between Version 16 and Version 17 of GEC21Agenda/ScalingUp/Procedure/Appendix


Ignore:
Timestamp:
05/27/15 22:05:14 (9 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC21Agenda/ScalingUp/Procedure/Appendix

    v16 v17  
    155155</table>
    156156}}}
    157 The Playbook to configure the `server` node is as follows:
     157The Playbook to tell the `server` node to rerun the `nmap` scan and post the results is in `roles/nmap/tasks/map.yml` and looks as follows:
    158158
    159159   {{{
    160160#!python
    161161---
    162 - name: Configure client
    163   hosts: client
    164   sudo: True
    165   tasks:
    166    - name: install apache2
    167      apt: name=apache2 update_cache=yes
    168    - name: install iperf
    169      apt: name=iperf update_cache=yes
    170    - name: copy scripts into /local with permissions 755
    171      synchronize: src=scripts dest=/local mode=755
     162   - name: map network using nmap
     163     command: nmap -sP -oX {{ nmap_xml_file }} {{ address_range }}
     164   - name: convert nmap xml to html
     165     shell:  xsltproc /usr/share/nmap/nmap.xsl {{ nmap_xml_file }} > {{ nmap_html_file }}
     166   - name: create directory for nmap logs in WEB_ROOT/nmaplogs with permissions of 755
     167     file: >
     168        dest={{ WEB_ROOT }}/{{ nmap_dir }}
     169        state=directory
     170        mode=755
     171   - name: copy nmap html file to a public place
     172     command: mv {{ nmap_html_file }} {{ WEB_ROOT }}/{{ nmap_dir }}/nmap.html removes={{ nmap_html_file }}
     173[
    172174    }}}
    173175