| 60 | {{{ |
| 61 | #!div style="background: #ffd; border: 3px ridge; width: 800px;" |
| 62 | On your local machine: |
| 63 | |
| 64 | {{{ |
| 65 | #!sh |
| 66 | ansible -i inventory all -s -m apt -a "name=apache2 update_cache=yes" |
| 67 | |
| 68 | ansible -i inventory server -s -a "/usr/sbin/a2enmod status" |
| 69 | |
| 70 | ansible -i inventory server -s -m file -a "path=/var/www/html state=absent" |
| 71 | |
| 72 | ansible -i inventory server -s -m synchronize -a "src=website/index.html dest=/var/www" |
| 73 | |
| 74 | ansible -i inventory server -s -m lineinfile -a "line='ExtendedStatus On' dest=/etc/apache2/conf.d/extendedstatus create=yes state=present" |
| 75 | |
| 76 | ansible -i inventory server -s -m service -a "name=apache2 state=restarted" |
| 77 | }}} |
| 78 | }}} |