Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k points)
edited by

I am getting error while executing playbook. Any suggestions would be helpful.

Screenshot from 2020-04-01 09-50-09.png

1 Answer

0 votes
by (50.2k points)

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

For more information, check out this Devops Tutorial.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.4k questions

32.5k answers

500 comments

108k users

Browse Categories

...