Changes between Version 5 and Version 6 of GEC21Agenda/ScalingUp/Procedure/Appendix


Ignore:
Timestamp:
05/26/15 21:47:12 (9 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC21Agenda/ScalingUp/Procedure/Appendix

    v5 v6  
    163163}}}
    164164}}}
     165The 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
     184Put the above content in a file called `hello-client.yml`.
     185
     186Run the playbook with the following command on the local machine:
     187
     188   {{{
     189#!python
     190ansible-playbook hello-client.yml -i inventory
     191   }}}
     192}}