On Fri, Jan 3, 2020 at 4:04 PM Mauricio Tavares <raubvo...@gmail.com> wrote:
>
> So I am using the git module to get two packages I am building
> locally. First one, a library, I download and then run the make module
> and built it (without installing. I will include the library as is).
> That works fine. I can run the playbook all day and it will not try to
> reinstall or recompile unless there is something new.
>
> The second package I also get using the git module,
>
> - name: Download thing
>   git:
>     repo: https://github.com/example/thing
>     dest: "{{ dev_dir }}/thingi"
>
> Like the email I posted earlier today, I configure the thing (I
> decided to break it apart):
>
> - name: configure thing build
>   command:
>     cmd: ./configure --with_that-lib=/path/to/the/lib
>     args:
>       chdir: dev/thing
>
> Let's ignore building the thing for now. When I run the playbook for
> the first time, thing is downloaded and configured. When I run it the
> second time, it fails in the download task. The error I am getting is
>
> "Local modifications exist in repository (force=no)."
>
> What would be the best way to deal with this? I did try adding
>
>     separate_git_dir: "{{ dev_dir }}/thing.git"
>
> thinking that all it wanted is to have a git dir separate from the dir
> I am using to build it, but no dice.

Update: 
https://stackoverflow.com/questions/41178361/how-to-use-ansible-git-module-pull-a-branch-with-local-changes
showed me what was going on. Thanks for all the help!

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAHEKYV4wEGuxp3OLLYO%3DEe39baeFnGFBUob75tfr85arkykXNg%40mail.gmail.com.

Reply via email to