Difference between revisions of "Ansible Variables"
Jump to navigation
Jump to search
(Created page with "=Ansible Variables= --- - name: setup apache ser er hosts: localhost vars: variablename: apache2 tasks: apt: name: "{{ variablename }}" state: present tags: i-apache -name: start apache service: name: "{{ variablename }}" state: started tags: start_apache2") |
|||
Line 1: | Line 1: | ||
=Ansible Variables= | =Ansible Variables= | ||
<pre> | |||
--- | --- | ||
- name: setup apache ser er | - name: setup apache ser er | ||
Line 16: | Line 16: | ||
state: started | state: started | ||
tags: start_apache2 | tags: start_apache2 | ||
</pre> |
Revision as of 21:26, 13 July 2022
Ansible Variables
--- - name: setup apache ser er hosts: localhost vars: variablename: apache2 tasks: apt: name: "{{ variablename }}" state: present tags: i-apache -name: start apache service: name: "{{ variablename }}" state: started tags: start_apache2