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-cli.yml
- include: packages-gui.yml - include: packages-gui.yml
when: gui == true when: gui == true
- include: build-env.yml
- include: modules.yml - include: modules.yml
- include: ssh.yml - include: ssh.yml
- include: solokeys.yml - include: solokeys.yml

View file

@ -10,19 +10,14 @@
- apt-file - apt-file
- ansible - ansible
- asciidoctor - asciidoctor
- build-essential
- clang - clang
- clang-format - clang-format
- console-data - console-data
- curl - curl
- dc - dc
- debhelper
- devscripts
- dh-make
- dnsutils - dnsutils
- exfat-fuse - exfat-fuse
- exfat-utils - exfat-utils
- fakeroot
- git - git
- gnupg - gnupg
- groff - 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: copy:
src: openpgp.asc src: openpgp.asc
dest: "{{ ansible_env.HOME }}/.config/openpgp.asc" dest: "{{ ansible_env.HOME }}/.config/openpgp.asc"
- name: Copy .pbuilderrc
copy:
src: pbuilderrc
dest: "{{ ansible_env.HOME }}/.pbuilderrc"