Changes between Version 12 and Version 13 of GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute


Ignore:
Timestamp:
03/15/15 16:13:27 (9 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

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

    v12 v13  
    9898   {{{
    9999#!sh
    100 ansible [-i inventory] [all/server/client] -s  -m synchronize -a "src=website/index.html dest=/var/www"
     100ansible [-i inventory] [all/server/client] -s  -m synchronize \
     101    -a "src=website/index.html dest=/var/www"
    101102   }}}
    102103`lineinfile` module is used to see if an arbitrary line exists in a file:
    103104   {{{
    104105#!sh
    105 ansible [-i inventory] [all/server/client] -s  -m lineinfile -a "line='ExtendedStatus On' dest=/etc/apache2/conf.d/extendedstatus create=yes state=present"
     106ansible [-i inventory] [all/server/client] -s  -m lineinfile \
     107     -a "line='ExtendedStatus On' dest=/etc/apache2/conf.d/extendedstatus create=yes state=present"
    106108   }}}
    107109`service` module is used to start/stop/restart/etc services: