| 165 | The Playbook to configure the `client` node as in the install script is as follows: |
| 166 | |
| 167 | {{{ |
| 168 | #!python |
| 169 | --- |
| 170 | - name: Configure client |
| 171 | hosts: client |
| 172 | sudo: True |
| 173 | tasks: |
| 174 | - name: install apache2 |
| 175 | apt: name=apache2 update_cache=yes |
| 176 | - name: install iperf |
| 177 | apt: name=iperf update_cache=yes |
| 178 | - name: copy scripts into /local with permissions 755 |
| 179 | synchronize: src=scripts dest=/local mode=755 |
| 180 | }}} |
| 181 | |
| 182 | ''Do these commands look like the Ad Hoc commands you came up with in the previous step?'' |
| 183 | |
| 184 | Put the above content in a file called `hello-client.yml`. |
| 185 | |
| 186 | Run the playbook with the following command on the local machine: |
| 187 | |
| 188 | {{{ |
| 189 | #!python |
| 190 | ansible-playbook hello-client.yml -i inventory |
| 191 | }}} |
| 192 | }} |