Ansible Module copy: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:


<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml'>
- name: Copy bashrc scripts
  template:
    src: "{{ item }}"
    dest: "{{rc_d}}"
    mode: "u=rwx,g=rx,o=rx"
  with_fileglob:
    - "*.sh"
</syntaxhighlight>
</syntaxhighlight>


The files can be placed in:
The files can be placed in:


* <role>/files
* ?

Revision as of 18:44, 19 January 2021

External

Internal

Example

The files can be placed in:

  • ?