Set up a build environment in Ubuntu
This commit is contained in:
parent
f381650c78
commit
64dae322f0
4 changed files with 34 additions and 1 deletions
4
roles/ubuntu/files/pbuilderrc
Normal file
4
roles/ubuntu/files/pbuilderrc
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
AUTO_DEBSIGN=${AUTO_DEBSIGN:-no}
|
||||||
|
HOOKDIR=/var/cache/pbuilder/hooks
|
||||||
|
DISTRIBUTION=${DISTRIBUTION:-focal}
|
||||||
|
DEBOOTSTRAPOPTS=( '--variant=buildd' )
|
29
roles/ubuntu/tasks/build-env.yml
Normal file
29
roles/ubuntu/tasks/build-env.yml
Normal 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'
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue