diff --git a/meta/main.yml b/meta/main.yml index cf277a9..0541c6b 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -17,6 +17,9 @@ galaxy_info: - name: EL versions: - 7 + - name: CentOS + versions: + - 7.2 galaxy_tags: - networking diff --git a/tasks/main.yml b/tasks/main.yml index 0ecbfcc..0ea78a7 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -38,6 +38,13 @@ - pip tags: install + - name: Install pycparser + # https://community.letsencrypt.org/t/certbot-auto-fails-while-setting-up-virtual-environment-complains-about-package-hashes/20529/22 + pip: virtualenv="{{ letsencrypt_venv }}" virtualenv_site_packages=no name=pycparser version=2.13 state=present virtualenv_python=python2 + become: yes + tags: install + when: ansible_os_family == "RedHat" + - name: More python depends pip: virtualenv: "{{ letsencrypt_venv }}" diff --git a/vars/RedHat.yml b/vars/RedHat.yml index b288f42..b957bae 100644 --- a/vars/RedHat.yml +++ b/vars/RedHat.yml @@ -14,5 +14,5 @@ letsencrypt_depends: - ca-certificates - python-pip - git - + virtualenv_package_name: "python-virtualenv"