Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Software >> Automation >> Ansible >> Playbook >> What is the playbook structure

 

Ansible Playbook Structure


## Example

---
  # This is a simple playbook with a single play
  - name: a simple play
    host: managedhost.example.com
    user: remoteuser
    become: yes
    become_method: sudo
    become_user: root
    gather_facts: [yes|no]
    tasks:
    - name: first task
      service: name=httpd enabled=true
    - name: second task
      service: name=sshd enabled=true
...


## FORMATTING


 

[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]