Difference between revisions of "Ansible template module"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{Draft}} {{lowercase}} https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template_module.html - name: Template a file, using symbolic modes (equivalent...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Draft}}
 
{{Draft}}
{{lowercase}}
+
* https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template_module.html
 
 
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template_module.html
 
  
  
Line 21: Line 19:
 
== See also ==
 
== See also ==
 
* {{Ansible templates}}
 
* {{Ansible templates}}
* {{Ansible modules}}
 
* {{Ansible}}
 
 
  
 
[[Category:Ansible]]
 
[[Category:Ansible]]

Latest revision as of 08:51, 18 November 2022

This article is a Draft. Help us to complete it.


- name: Template a file, using symbolic modes (equivalent to 0644)
  template:
    src: /mytemplates/foo.j2
    dest: /etc/file.conf
    owner: bin
    group: wheel
    mode: u=rw,g=r,o=r

Related terms[edit]

See also[edit]

Advertising: