forked from evolix/ansible-roles
Improve backports handling
This commit is contained in:
parent
71294a39df
commit
ad2a36036a
|
@ -20,12 +20,22 @@
|
||||||
- block:
|
- block:
|
||||||
- name: Add backports repository
|
- name: Add backports repository
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/apt/sources.list
|
dest: /etc/apt/sources.list.d/backports.list
|
||||||
line: 'deb http://mirror.evolix.org/debian jessie-backports main'
|
line: 'deb http://mirror.evolix.org/debian jessie-backports main'
|
||||||
state: present
|
state: present
|
||||||
register: add_backports
|
register: add_backports
|
||||||
when: evoacme_certbot_release == "jessie-backports"
|
when: evoacme_certbot_release == "jessie-backports"
|
||||||
|
|
||||||
|
- name: Add exceptions for certbot dependances
|
||||||
|
blockinfile:
|
||||||
|
dest: /etc/apt/preferences.d/backports
|
||||||
|
marker: "## {mark} ANSIBLE MANAGED BLOCK"
|
||||||
|
block: |
|
||||||
|
Package: certbot python-certbot python-acme python-cryptography python-openssl python-setuptools python-ndg-httpsclient python-pyasn1 python-pkg-resources
|
||||||
|
Pin: release a=jessie-backports
|
||||||
|
Pin-Priority: 999
|
||||||
|
when: evoacme_certbot_release == "jessie-backports"
|
||||||
|
|
||||||
- name: Apt update
|
- name: Apt update
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
Loading…
Reference in a new issue