Back
I am getting error while executing playbook. Any suggestions would be helpful.
Kindly use the below playbook.yml that will help you to resolve the issue:
---- hosts: hostname become_user: root tasks: - name: install apache apt: name=apache2 state=latest
---
- hosts: hostname
become_user: root
tasks:
- name: install apache
apt: name=apache2 state=latest
For more information, check out this Devops Tutorial.
31k questions
32.8k answers
501 comments
693 users