Skip to content

[BUGIFX] ensure git is installed#15

Open
lynxis wants to merge 1 commit intoandreaswolf:masterfrom
lynxis:install_git
Open

[BUGIFX] ensure git is installed#15
lynxis wants to merge 1 commit intoandreaswolf:masterfrom
lynxis:install_git

Conversation

@lynxis
Copy link
Copy Markdown
Contributor

@lynxis lynxis commented Mar 2, 2016

No description provided.

@andreaswolf
Copy link
Copy Markdown
Owner

I would rather like to not tie this directly to one family of OSes. Then let’s see if we can instead download the zip file from Github instead (which would also make the process a lot faster).

@emmetog
Copy link
Copy Markdown
Contributor

emmetog commented May 30, 2016

How about using a conditional, like this:

- name: ensure git is present (apt)
  apt: name=git state=present cache_valid_time=3600 update_cache=yes
  when: ansible_pkg_mgr == 'apt'

- name: ensure git is present (yum)
  yum: name=git state=present update_cache=yes
  when: ansible_pkg_mgr == 'yum'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants