Changes between Version 24 and Version 25 of GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute
- Timestamp:
- 03/15/15 21:07:23 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute
v24 v25 126 126 }}} 127 127 }}} 128 128 a. Using the above Ad Hoc Ansible commands do the following: 129 i. on both `client` and `server`, install `apache2` and `iperf` 130 i. on the `server` node, place the `website/index.html` file in `/var/www`; do the same with the `website/graphics` files. 129 131 130 132 … … 143 145 </td> 144 146 <td> 145 Ansible Ad Hoc commands eas y map to commands used in an Ansible Playbook.147 Ansible Ad Hoc commands easily map to commands used in an Ansible Playbook. 146 148 </td> 147 149 </tr> … … 149 151 }}} 150 152 151 152 On the local machine: 153 The `hello-client.yml` is: 153 154 154 155 {{{ 155 156 #!python 157 --- 158 - name: Configure client 159 hosts: client 160 sudo: True 161 tasks: 162 - name: install apache2 163 apt: name=apache2 update_cache=yes 164 - name: install iperf 165 apt: name=iperf update_cache=yes 166 - name: copy scripts into /local with permissions 755 167 synchronize: src=scripts dest=/local mode=755 168 }}} 169 170 Run the playbook with the following commands on the local machine: 171 172 {{{ 173 #!python 174 ansible-playbook hello-client.yml -i inventory 156 175 ansible-playbook hello-server.yml -i inventory 157 ansible-playbook hello-client.yml -i inventory158 176 }}} 159 177 }}} 160 161 a. Using the above Ansible modules: 162 i. on both `client` and `server`, install `apache2` and `iperf` 163 i. on the `server` node, place the `website/index.html` file in `/var/www`; do the same with the `website/graphics` files. 164 a. Using the above Ansible modules, reproduce the steps in the HelloGENI install script. As you find a command that works, carefully copy it into a text file and then into the Playbook. 178 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, carefully copy it into a text file and then into the Playbook. 165 179 166 180 == 6. Analyze Experiment ==