Difference between revisions of "Vars:"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lc}} == See also == * {{Ansible}} Category:Ansible")
 
 
(9 intermediate revisions by 2 users not shown)
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]]
 +
 +
 +
== Related ==
 +
* [[Ansible print and debug examples]]
 +
* [[Ansible variables|Variables]]
 +
* <code>[[--extra-vars]]</code>
 +
* <code>[[ansible_python_interpreter]]</code>
 +
* <code>[[with_items:]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 10:59, 1 December 2022

Advertising: