# Question about unarchive files

**URL:** <https://forum.ansible.com/t/question-about-unarchive-files/22309>\
**Category:** Ansible Developer\
**Created:** [August 17, 2016, 3:31pm UTC](https://forum.ansible.com/t/question-about-unarchive-files/22309 "2016-08-17T15:31:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dusty\_Mabe](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@Dusty\_Mabe](https://forum.ansible.com/u/Dusty_Mabe)\
**Post date:** [August 17, 2016, 3:31pm UTC](https://forum.ansible.com/t/question-about-unarchive-files/22309/1 "2016-08-17T15:31:33Z")

</div>

What is the relationship between the following two files:

lib/ansible/plugins/action/unarchive.py - from ansible/ansible  
lib/ansible/modules/core/files/unarchive.py - from ansible/ansible-modules-core

It seems like action/unarchive has some implications on the unarchive  
module but they live in two different repos. What is their relationship?  
Should they be managed in the same repository?

The reason I ask is because I think I have found an issue that is a  
result of a change in one file that needs a corresponding change in the  
other that wasn't done.

Thanks,  
Dusty

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [August 17, 2016, 3:38pm UTC](https://forum.ansible.com/t/question-about-unarchive-files/22309/2 "2016-08-17T15:38:13Z")

</div>

Action plugins are a layer that sits between the Ansible controller and the remote node. Typically, action plugins are used to do something on the controller side before (or instead of) doing something on the remote side.

If the bug is in the action plugin, open an issue/PR in ansible/ansible, otherwise open it for the module in ansible/ansible-core-modules.

---

<div class="post-metadata">

**Author:** ![Dusty\_Mabe](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@Dusty\_Mabe](https://forum.ansible.com/u/Dusty_Mabe)\
**Post date:** [August 17, 2016, 3:47pm UTC](https://forum.ansible.com/t/question-about-unarchive-files/22309/3 "2016-08-17T15:47:12Z")

</div>

Thanks for the explanation.

If the two things are dependent then why not have the action plugin for unarchive  
live in the same repo as the module it corresponds to? Would it not be safer to  
have them live together in the same repo?

If it is truly a plugin then it should be able to be provided from anywhere so  
it shouldn't need to live in ansible/ansible right?

Dusty

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [August 17, 2016, 4:11pm UTC](https://forum.ansible.com/t/question-about-unarchive-files/22309/4 "2016-08-17T16:11:21Z")

</div>

They will be shortly 🙂

The short answer to that is: we decided that all plugins would live with the main code base, so that’s where action plugins ended up.

---

<div class="post-metadata">

**Author:** ![Dusty\_Mabe](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@Dusty\_Mabe](https://forum.ansible.com/u/Dusty_Mabe)\
**Post date:** [August 17, 2016, 4:17pm UTC](https://forum.ansible.com/t/question-about-unarchive-files/22309/5 "2016-08-17T16:17:18Z")

</div>

Thanks. So the modules will live in ansible/ansible in the future?

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [August 17, 2016, 4:20pm UTC](https://forum.ansible.com/t/question-about-unarchive-files/22309/6 "2016-08-17T16:20:55Z")

</div>

Yes, the current plan is to collapse modules back into the main repo. We’re still working out details, but currently plan on completing this in the 2.3 time frame.
