Move Debian build environment to separate tasks

This commit is contained in:
Anthony Rose 2020-06-04 19:19:17 +01:00
parent 0ee3c42240
commit cfc3aa91ed
5 changed files with 25 additions and 5 deletions

View file

@ -0,0 +1,16 @@
---
- name: Install build environment packages
become: true
apt:
name: '{{ packages }}'
state: present
force_apt_get: yes
vars:
packages:
- build-essential
- debhelper
- debootstrap
- devscripts
- dh-make
- fakeroot
- pbuilder

View file

@ -2,6 +2,7 @@
- include: packages-cli.yml
- include: packages-gui.yml
when: gui == true
- include: build-env.yml
- include: modules.yml
- include: ssh.yml
- include: solokeys.yml

View file

@ -10,19 +10,14 @@
- apt-file
- ansible
- asciidoctor
- build-essential
- clang
- clang-format
- console-data
- curl
- dc
- debhelper
- devscripts
- dh-make
- dnsutils
- exfat-fuse
- exfat-utils
- fakeroot
- git
- gnupg
- groff

View file

@ -0,0 +1,4 @@
AUTO_DEBSIGN=${AUTO_DEBSIGN:-no}
HOOKDIR=/var/cache/pbuilder/hooks
DISTRIBUTION=${DISTRIBUTION:-stable}
DEBOOTSTRAPOPTS=( '--variant=buildd' )

View file

@ -19,3 +19,7 @@
copy:
src: openpgp.asc
dest: "{{ ansible_env.HOME }}/.config/openpgp.asc"
- name: Copy .pbuilderrc
copy:
src: pbuilderrc
dest: "{{ ansible_env.HOME }}/.pbuilderrc"