Set up a build environment in Ubuntu

This commit is contained in:
Anthony Rose 2020-10-15 21:44:16 +01:00
parent f381650c78
commit 64dae322f0
4 changed files with 34 additions and 1 deletions

View file

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

View file

@ -0,0 +1,29 @@
---
- 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
- name: Copy pbuilderrc
become: true
copy:
src: pbuilderrc
dest: /etc/pbuilderrc
- name: Set permissions on /var/cache/pbuilder/result
become: true
file:
path: /var/cache/pbuilder/result
state: directory
owner: root
group: root
mode: '1777'

View file

@ -2,5 +2,6 @@
- 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

View file

@ -25,7 +25,6 @@
- nmap - nmap
- openssh-server - openssh-server
- packagekit - packagekit
- pbuilder
- python3 - python3
- python3-psutil - python3-psutil
- ruby-asciidoctor-pdf - ruby-asciidoctor-pdf