| 163 | ---- |
| 164 | |
| 165 | == 5. Create and run an Ansible playbook to install the software you'll need == |
| 166 | |
| 167 | Next you will write a playbook to install the software you'll need on all the nodes. Below is a skeleton Ansible file that you use ([attachment:software-install.yaml download]). You will need to fill in the bits marked `# INSERT ARGUMENTS HERE` based on the instructions in the following section. If you get stuck at any point, you can take a look at this [attachment:software-install-solution.yaml solution]. |
| 168 | |
| 169 | {{{ |
| 170 | #!python |
| 171 | --- |
| 172 | - hosts: nodes |
| 173 | remote_user: root |
| 174 | tasks: |
| 175 | - name: Update apt cache |
| 176 | apt: # INSERT ARGUMENTS HERE |
| 177 | |
| 178 | - name: Install dnsutils (for dig) |
| 179 | apt: # INSERT ARGUMENTS HERE |
| 180 | |
| 181 | - name: Install geoip-bin (for geoiplookup) |
| 182 | apt: # INSERT ARGUMENTS HERE |
| 183 | }}} |
| 184 | |
| 185 | Run this playbook on all the nodes in your slice. |