Skip to content

Ansible role (copy files from your inventory directory to remote server)

License

Notifications You must be signed in to change notification settings

Stouts/Stouts.resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stouts.resources

Build Status Galaxy

Ansible role (copy files from your inventory directory to remote server)

The role copied all files from your inventory directory to server (by default /etc/ansible/resources). By example if you would like copy your deploy keys, configuration files you dont need write additional ansible tasks. Than you could use them (make links to them, or copy remotelly)

See also: Stouts.source

Variables

resources_enabled: yes                        # Enable the role
resources_from: "{{inventory_dir}}/resources" # Local resources directory (files will be copied from)
resources_content: []                         # Copy content to files
                                              # resources_content: 
                                              # - content: "CONTENT"
                                              #   path: "/dest/file/path"
resources_to: /etc/ansible                    # Remote resources directory (files will be copied to)
resources_clean: no                           # Delete remote resources directory

Usage

Add Stouts.resources to your roles. Create <inventory_dir>\resources directory and place your files here (inventory_dir is a directory where your inventory file are placed). All files and directories from the directory will be recursively copied to remote machine (by default to remote directory /etc/ansible).

Example:

- hosts: all

  roles:
    - Stouts.resources

License

Licensed under the MIT License. See the LICENSE file for details.

Feedback, bug-reports, requests, ...

Are welcome!

About

Ansible role (copy files from your inventory directory to remote server)

Resources

License

Stars

Watchers

Forks

Packages

No packages published