Changes between Version 26 and Version 27 of GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute
- Timestamp:
- 03/15/15 21:12:33 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/AnsibleHelloGENI/Execute
v26 v27 144 144 </td> 145 145 <td> 146 Ansible Ad Hoc commands easily map to commands used in an Ansible Playbook.146 Ansible commands can be collected into files called <i>Playbooks</i>. Playbooks are in a configuration file format called <i>YAML</i> which is very straightforward. In particular, Ansible Ad Hoc commands easily map to commands used in an Ansible Playbook. 147 147 </td> 148 148 </tr> … … 150 150 }}} 151 151 152 The `hello-client.yml` is:152 The commands to configure the `client` node as in the install script are as follows: 153 153 154 154 {{{ … … 167 167 }}} 168 168 169 Run the playbook with the following commands on the local machine: 169 Let's put the above in a file `hello-client.yml`. 170 171 Run the playbook with the following command on the local machine: 170 172 171 173 {{{ 172 174 #!python 173 175 ansible-playbook hello-client.yml -i inventory 174 ansible-playbook hello-server.yml -i inventory175 176 }}} 176 177 }}} 177 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, c arefully 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, construct a `hello-server.yml` playbook. 178 179 179 180 == 6. Analyze Experiment ==