tksarah.fetch-files
fetch-files
Ansible Role: fetch-file
As executing the playbook, the role is copied from the target host in background and save it as a text file. The role allows to get the list of specific files simply.
Install
# ansible-galaxy install --roles-path ./roles tksarah.fetch-files
Requirements
- Ansible version 2.0 <
Role Variables
Available variables are listed below,
defaults/main.yml:
savedir: "fetched"
Ex) sample_filelist.txt:
/etc/ssh/sshd_config
/var/log/syslog
/etc/nsswitch.conf
/etc/hosts
/boot/grub/grub.conf
Dependencies
None
Example Playbook
- name: Playbook for fetching files
hosts: "{{ target }}"
gather_facts: no
become: true
become_user: root
vars_prompt:
- { name: "target" , prompt: "Input target host" , default: all , private: no }
- { name: "inputfile" , prompt: "Input your file list" , default: sample_filelist.txt , private: no }
- { name: "savedir" , prompt: "Input a save directory" , default: fetched , private: no }
roles:
- tksarah.fetch-files
License
BSD
Author Information
fetch-file role was written by: T.Kuramochi
Install
ansible-galaxy install tksarah.fetch-filesLicense
Unknown
Downloads
135
Owner
@AstarNetwork Technical Ecosystem Agent /
@soneium
Advocate / web3 Technical Marketing, IT Infrastructure TechLead, Evangelist, and School Teacher
