Difference between revisions of "Vars:"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
 +
#!/usr/bin/env ansible-playbook
 +
 +
- hosts: localhost
 +
  gather_facts: no
 +
  [[vars:]]
 +
    my_var: MY_VALUE
 +
 +
  tasks:
 +
    - name: My first task to show uptime
 +
      command: [[uptime]]
  
  

Revision as of 15:10, 11 August 2022

Advertising: