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-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
|
||||||
|
|
|
@ -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
|
||||||
|
|
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:
|
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"
|
||||||
|
|
Loading…
Reference in a new issue