Changes between Version 12 and Version 13 of GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute
- Timestamp:
- 03/15/15 16:13:27 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute
v12 v13 98 98 {{{ 99 99 #!sh 100 ansible [-i inventory] [all/server/client] -s -m synchronize -a "src=website/index.html dest=/var/www" 100 ansible [-i inventory] [all/server/client] -s -m synchronize \ 101 -a "src=website/index.html dest=/var/www" 101 102 }}} 102 103 `lineinfile` module is used to see if an arbitrary line exists in a file: 103 104 {{{ 104 105 #!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" 106 ansible [-i inventory] [all/server/client] -s -m lineinfile \ 107 -a "line='ExtendedStatus On' dest=/etc/apache2/conf.d/extendedstatus create=yes state=present" 106 108 }}} 107 109 `service` module is used to start/stop/restart/etc services: