roles/nginx: Separate Debian 9 "stretch" Let's Encrypt deps

Instead of iterating over fifteen packages with a loop that does fifteen
separate apt transactions, it is better to give the apt module a list so
it can install them all in one transaction. This is both quicker and te-
chnically more safe for dependency resolution.
This commit is contained in:
Alan Orth 2018-04-25 20:02:42 +03:00
parent f427350feb
commit ebda406de3
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
2 changed files with 53 additions and 50 deletions

View File

@ -115,4 +115,53 @@ letsencrypt_ubuntu_bionic_deps:
- python3-virtualenv
- virtualenv
# Dependencies of certbot-auto on Debian 9 "stretch"
# taken after running certbot-auto on a clean install
letsencrypt_debian_stretch_deps:
- augeas-doc
- augeas-tools
- autoconf
- automake
- binutils
- bison
- cpp
- cpp-6
- flex
- gcc-6
- gcc-doc
- gcc-multilib
- gdb
- libasan3
- libatomic1
- libc-dev-bin
- libc6-dev
- libcc1-0
- libcilkrts5
- libexpat1-dev
- libffi-dev
- libgcc-6-dev
- libgomp1
- libisl15
- libitm1
- liblsan0
- libmpc3
- libmpx2
- libpython-dev
- libpython2.7
- libpython2.7-dev
- libquadmath0
- libssl-dev
- libtool
- libtsan0
- libubsan0
- linux-libc-dev
- make
- python-dev
- python-pip-whl
- python-pkg-resources
- python-virtualenv
- python2.7-dev
- python3-virtualenv
- virtualenv
# vim: set ts=2 sw=2:

View File

@ -27,57 +27,11 @@
- packages
- letsencrypt
# dependencies certbot checks for on its first run
# taken from running certbot right after a clean Debian 9 install
- name: Install certbot dependencies (Debian 9)
when: ansible_distribution == 'Debian' and ansible_distribution_major_version is version_compare('9', '==')
apt: name={{ item }} state=present update_cache=yes
loop:
- augeas-doc
- augeas-tools
- autoconf
- automake
- binutils
- bison
- cpp
- cpp-6
- flex
- gcc-6
- gcc-doc
- gcc-multilib
- gdb
- libasan3
- libatomic1
- libc-dev-bin
- libc6-dev
- libcc1-0
- libcilkrts5
- libexpat1-dev
- libffi-dev
- libgcc-6-dev
- libgomp1
- libisl15
- libitm1
- liblsan0
- libmpc3
- libmpx2
- libpython-dev
- libpython2.7
- libpython2.7-dev
- libquadmath0
- libssl-dev
- libtool
- libtsan0
- libubsan0
- linux-libc-dev
- make
- python-dev
- python-pip-whl
- python-pkg-resources
- python-virtualenv
- python2.7-dev
- python3-virtualenv
- virtualenv
tags: packages
apt: name={{ letsencrypt_debian_stretch_deps }} state=present update_cache=yes
tags:
- packages
- letsencrypt
# vim: set ts=2 sw=2: