• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..11-Oct-2021-

DockerfileH A D03-May-2022329 2117

README.mdH A D03-May-20221 KiB4028

ansible-core.dirsH A D03-May-202286 54

ansible-core.installH A D03-May-2022653 1615

ansible-test.installH A D03-May-2022124 32

changelogH A D03-May-2022131 63

compatH A D03-May-20222

controlH A D03-May-20221.5 KiB3027

copyrightH A D03-May-20221 KiB2718

docsH A D03-May-202211 21

pycompatH A D03-May-20222

rulesH A D03-May-2022610 1810

README.md

1Ansible Debian Package
2======================
3
4To create an Ansible DEB package:
5
6__Note__: You must run this target as root or set `PBUILDER_BIN='sudo pbuilder'`
7
8```
9apt-get install python-docutils cdbs debootstrap devscripts make pbuilder python-setuptools
10git clone https://github.com/ansible/ansible.git
11cd ansible
12DEB_DIST='xenial trusty precise' make deb
13```
14
15Building in Docker:
16
17```
18git clone https://github.com/ansible/ansible.git
19cd ansible
20docker build -t ansible-deb-builder -f packaging/debian/Dockerfile .
21docker run --privileged -e DEB_DIST='trusty' -v $(pwd):/ansible ansible-deb-builder
22```
23
24The debian package file will be placed in the `deb-build` directory. This can then be added to an APT repository or installed with `dpkg -i <package-file>`.
25
26Note that `dpkg -i` does not resolve dependencies.
27
28To install the Ansible DEB package and resolve dependencies:
29
30```
31dpkg -i <package-file>
32apt-get -fy install
33```
34
35Or, if you are running Debian Stretch (or later) or Ubuntu Xenial (or later):
36
37```
38apt install /path/to/<package-file>
39```
40