ansible-role-letsencrypt icon indicating copy to clipboard operation
ansible-role-letsencrypt copied to clipboard

[BUGIFX] ensure git is installed

Open lynxis opened this issue 8 years ago • 2 comments

lynxis avatar Mar 02 '16 14:03 lynxis

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).

andreaswolf avatar Mar 09 '16 12:03 andreaswolf

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'

emmetog avatar May 30 '16 08:05 emmetog