Difference between revisions of "Ansible playbooks examples"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 8: Line 8:
  
 
== Basic examples ==
 
== Basic examples ==
<pre>
 
#!/usr/bin/env ansible-playbook
 
  
- hosts: localhost
+
#!/usr/bin/env ansible-playbook
  become: yes
+
 
+
- hosts: localhost
  tasks:
+
  become: yes
    - package:
+
          name: sysstat
+
  tasks:
          state: present
+
    - [[package:]]
</pre>
+
          name: sysstat
 +
          state: present
  
 
== See also ==
 
== See also ==

Revision as of 07:12, 5 April 2021

Advertising: