--- - name: Simple play that sets up webservers hosts: server become: true tasks: - name: install httpd package package: name: httpd state: present - name: ensure httpd is started and enabled service: name: httpd state: started enabled: true - name: 'Next play to verify for the webserver process' hosts: server become: false remote_user: student tasks: - name: 'grep PIDs of httpd' command: pgrep httpd