Move Debian build environment to separate tasks
This commit is contained in:
parent
0ee3c42240
commit
cfc3aa91ed
5 changed files with 25 additions and 5 deletions
16
roles/debian/tasks/build-env.yml
Normal file
16
roles/debian/tasks/build-env.yml
Normal 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
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
4
roles/home-cli/files/pbuilderrc
Normal file
4
roles/home-cli/files/pbuilderrc
Normal file
|
@ -0,0 +1,4 @@
|
|||
AUTO_DEBSIGN=${AUTO_DEBSIGN:-no}
|
||||
HOOKDIR=/var/cache/pbuilder/hooks
|
||||
DISTRIBUTION=${DISTRIBUTION:-stable}
|
||||
DEBOOTSTRAPOPTS=( '--variant=buildd' )
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue