Difference between revisions of "Template:(Ansible)"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
 
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template_module.html
 
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template_module.html
  
<pre>
+
 
- name: Template a file, using symbolic modes (equivalent to 0644)
+
- name: Template a file, using symbolic modes (equivalent to 0644)
  template:
+
  template:
    src: /mytemplates/foo.j2
+
    src: /mytemplates/foo.[[j2]]
    dest: /etc/file.conf
+
    dest: /etc/file.conf
    owner: bin
+
    owner: bin
    group: wheel
+
    group: wheel
    mode: u=rw,g=r,o=r
+
    mode: u=rw,g=r,o=r
</pre>
 
  
 
== Related terms ==
 
== Related terms ==

Revision as of 05:17, 3 December 2020

Advertising: