1

I'm using the command:

ansible-galaxy install -r requirements.yml

where requirements.yml is:

- src: https://github.com/USERNAME/ANSIBLE-ROLE.git
  version: master
  scm: git

and it creates the directory: /etc/ansible/roles/ANSIBLE-ROLE

How I can keep the SCM files like the .git directory?

tvl
  • 3,868
  • 2
  • 16
  • 35

1 Answers1

2

I guess your are out of luck here.
This is how things done: mkdir, clone, checkout, archive, rmtree.
Then required role is installed from temporary archive file.

Konstantin Suvorov
  • 65,183
  • 9
  • 162
  • 193