geerlingguy / geerlingguy/ansible-for-devops

Chapter 3 : fetch only works on files, not directories

Open
#446 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
9.9k
Forks
3.8k
PR merge metrics
No merged PRs in 30d

Description

In Chapter 3 of the Second Edition, it says on page 35 that the src for the copy module can be a file or directory (and implies the same with fetch).
This is in fact not true as I discovered by experimenting on Ansible Core/Base 2.11 and as stated in the Ansible documentation (same for version 2.9 and 2.10).
The src parameter has to be a file. So if you want to copy a directory you have to use synchronize or rsync module (or put the directory in an archive and use the unarchive module as suggested on page 36).
Hope this helps !

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating Chapter 3 of the Second Edition and review the statements on pages 35–36 about the copy and fetch modules. Verify the src behavior against the referenced Ansible documentation, then update the chapter so it does not claim that directories work and accurately points readers to synchronize, rsync, or unarchive alternatives.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.