- name: 'Reload apache2' shell: apache2ctl configtest && apache2ctl graceful - name: 'Restart apache2' service: name: 'apache2' state: 'restarted' # vim: ft=yaml.ansible