Created
October 4, 2018 07:24
-
-
Save sachin-slathia/5890cfd642d49f6a6711acaae10ee905 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Use test-servers | |
hosts: test-servers | |
become: yes | |
become_user: root | |
vars: | |
source: /home/knoldus/Personal/blogs/Ansible/blog1.txt | |
destination: /tmp | |
tasks: | |
- name: copy local files to remote machines | |
template: | |
src: "{{ source }}" | |
dest: "{{ destination }}" | |
owner: root | |
group: root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment