Difference between revisions of "Ansible playbooks examples"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
* <code>[[vars_files:]]</code>
 
* <code>[[vars_files:]]</code>
  
 +
 +
== Basic examples ==
 +
<pre>
 +
#!/usr/bin/env ansible-playbook
 +
 +
- hosts: localhost
 +
  become: yes
 +
 +
  tasks:
 +
    - package:
 +
          name: sysstat
 +
          state: present
 +
</pre>
  
 
== See also ==
 
== See also ==

Revision as of 13:07, 15 December 2020

Advertising: