Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git module recursive option #7927

Closed
luxifer opened this issue Jun 25, 2014 · 6 comments
Closed

Git module recursive option #7927

luxifer opened this issue Jun 25, 2014 · 6 comments
Labels
bug This issue/PR relates to a bug.

Comments

@luxifer
Copy link

luxifer commented Jun 25, 2014

Issue Type:

Bug Report

Ansible Version:

ansible-playbook 1.6.3

Environment:

N/A

Summary:

The recursive option of the git module seems not to be used.

Steps To Reproduce:
  • create a task with git
  • set option recursive=no
- git: repo=git@github.com:some/repo.git
       dest=/some/path
       recursive=no
Expected Results:

I want the ansible git module to clone my repo without the submodule (by not passing the --recursive to git)

Actual Results:

Ansible pass the --recursive to git so my repo was clone with the submodules

@jimi-c
Copy link
Member

jimi-c commented Jun 26, 2014

I believe we fixed this in #7033. Can you try with the devel branch and see if you still see the same issue?

@jimi-c jimi-c added P3 and removed P3 labels Jun 26, 2014
@luxifer
Copy link
Author

luxifer commented Jun 26, 2014

Thanks. I'll try it later this day.
Le 26 juin 2014 05:31, "James Cammarata" notifications@github.com a écrit
:

I believe we fixed this in #7033
#7033. Can you try with the
devel branch and see if you still see the same issue?


Reply to this email directly or view it on GitHub
#7927 (comment).

@cvctimlindsay
Copy link

I'm running 1.6.6 and having same issue. Here's dpkg info on ansible version.

Package: ansible
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 3142
Maintainer: Henry Graham (hzgraham) Henry.Graham@mail.wvu.edu
Architecture: all
Version: 1.6.6-trusty-unstable-ppa
Depends: python, python-support (>= 0.90), python-jinja2, python-yaml, python-paramiko, python-httplib2, sshpass, python-setuptools
Conffiles:
/etc/ansible/hosts 7b96f47043374c481808dd8179a09473
/etc/ansible/ansible.cfg 6b478ec8ab0bc4feffadf3037dbc264c
Description: Ansible Application
Ansible is a extra-simple tool/API for doing 'parallel remote things' over SSH executing commands, running "modules", or executing larger 'playbooks' that can serve as a configuration management or deployment system.
Homepage: http://ansible.github.com/

@jimi-c jimi-c removed the needs_info label Jul 9, 2014
@prune998
Copy link
Contributor

same issue with 1.6.6 here.

Task :

  - name: "git pull in {{ build_path }}"
    git:  repo={{ git_url }} dest={{ build_path }}
          recursive=no
          version="release-{{ release_version }}"
          accept_hostkey=True

Resultant processes (ps auxwww) :

/usr/bin/git submodule update --init --recursive --remote

@jimi-c
Copy link
Member

jimi-c commented Jul 16, 2014

@prune998 / @cvctimlindsay as stated above, the issue was fixed in devel, and will be included in 1.7. It is not currently in the 1.6.x branch.

@mpdehaan
Copy link
Contributor

Closing as this was fixed on the development branch per James above. Let me know if you disagree.

@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

No branches or pull requests

6 participants