Require debian stretch, drop backports, cleanup
This commit is contained in:
parent
c5cd8bfe89
commit
632ccfc8ca
@ -7,7 +7,7 @@ The python package netaddr is required on the host running ansible.
|
|||||||
|
|
||||||
The vault password must be stored in `.vault_pass`.
|
The vault password must be stored in `.vault_pass`.
|
||||||
|
|
||||||
The *only* supported distribution to deploy roles on is debian jessie.
|
The *only* supported distribution to deploy roles on is debian stretch.
|
||||||
|
|
||||||
|
|
||||||
## Running Ansible
|
## Running Ansible
|
||||||
|
@ -1,13 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Enable backports
|
|
||||||
apt_repository: repo='deb http://httpredir.debian.org/debian jessie-backports main' state=present
|
|
||||||
|
|
||||||
- name: Install linux-image
|
|
||||||
apt: name=linux-image-amd64 default_release=jessie-backports state=latest
|
|
||||||
|
|
||||||
- name: Install batctl
|
- name: Install batctl
|
||||||
apt: name=batctl default_release=jessie-backports state=latest
|
apt: name=batctl state=latest
|
||||||
|
|
||||||
- name: Enable batman during boot
|
- name: Enable batman during boot
|
||||||
lineinfile: dest=/etc/modules line=batman-adv
|
lineinfile: dest=/etc/modules line=batman-adv
|
||||||
|
@ -1,18 +1,13 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Enable backports
|
|
||||||
apt_repository: repo='deb http://httpredir.debian.org/debian jessie-backports main' state=present
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
apt: name={{ item }} state=present
|
apt: name={{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- git
|
- git
|
||||||
- python-dateutil
|
- python-dateutil
|
||||||
|
- python-openssl
|
||||||
- python-yaml
|
- python-yaml
|
||||||
|
|
||||||
- name: Install python-openssl
|
|
||||||
apt: name=python-openssl default_release=jessie-backports state=latest
|
|
||||||
|
|
||||||
- name: Install acertmgr
|
- name: Install acertmgr
|
||||||
git: repo=https://github.com/moepman/acertmgr.git dest=/opt/acertmgr depth=1 version=480337648699cfbe321774dee1d8aa82eb27b626
|
git: repo=https://github.com/moepman/acertmgr.git dest=/opt/acertmgr depth=1 version=480337648699cfbe321774dee1d8aa82eb27b626
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Install misc software
|
- name: Install misc software
|
||||||
apt: name={{ item }} state=present
|
apt: name={{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- dnsutils
|
- dnsutils
|
||||||
- htop
|
- htop
|
||||||
|
- less
|
||||||
- openssl
|
- openssl
|
||||||
- pydf
|
- pydf
|
||||||
- rsync
|
- rsync
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
apt: name={{ item }} state=present
|
apt: name={{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- postgresql
|
- postgresql
|
||||||
- python-psycopg2
|
- python-psycopg2
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Install dhcp server
|
- name: Install dhcp server
|
||||||
apt: name=isc-dhcp-server state=latest
|
apt: name=isc-dhcp-server
|
||||||
|
|
||||||
- name: Configure dhcp server
|
- name: Configure dhcp server
|
||||||
template: src=dhcpd.conf.j2 dest=/etc/dhcp/dhcpd.conf
|
template: src=dhcpd.conf.j2 dest=/etc/dhcp/dhcpd.conf
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Enable backports
|
|
||||||
apt_repository: repo='deb http://httpredir.debian.org/debian jessie-backports main' state=present
|
|
||||||
|
|
||||||
- name: Install powerdns
|
- name: Install powerdns
|
||||||
apt: name={{ item }} default_release=jessie-backports state=latest
|
apt: name={{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
# - pdns-server
|
# - pdns-server
|
||||||
- pdns-recursor
|
- pdns-recursor
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Install iptables-persistent
|
- name: Install iptables-persistent
|
||||||
apt: name=iptables-persistent state=present
|
apt: name=iptables-persistent
|
||||||
|
|
||||||
- name: Enable IPv4 routing
|
- name: Enable IPv4 routing
|
||||||
sysctl: name=net.ipv4.ip_forward value=1 state=present
|
sysctl: name=net.ipv4.ip_forward value=1 state=present
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Enable backports
|
|
||||||
apt_repository: repo='deb http://httpredir.debian.org/debian jessie-backports main' state=present
|
|
||||||
|
|
||||||
- name: Install fastd
|
- name: Install fastd
|
||||||
apt: name=fastd default_release=jessie-backports state=latest
|
apt: name=fastd state=latest
|
||||||
|
|
||||||
- name: Install haveged (to create entropy)
|
- name: Install haveged (to create entropy)
|
||||||
apt: name=haveged
|
apt: name=haveged
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Enable backports
|
|
||||||
apt_repository: repo='deb http://httpredir.debian.org/debian jessie-backports main' state=present
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
apt: name=python-pkg-resources
|
apt: name=python-pkg-resources
|
||||||
|
|
||||||
- name: Install ifupdown2
|
- name: Install ifupdown2
|
||||||
apt: name=ifupdown2 default_release=jessie-backports state=latest
|
apt: name=ifupdown2 state=latest
|
||||||
|
|
||||||
- name: Uninstall ifupdown
|
- name: Uninstall ifupdown
|
||||||
apt: name=ifupdown state=absent
|
apt: name=ifupdown state=absent
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Enable backports
|
|
||||||
apt_repository: repo='deb http://httpredir.debian.org/debian jessie-backports main' state=present
|
|
||||||
|
|
||||||
- name: Install nginx
|
- name: Install nginx
|
||||||
apt: name=nginx-light default_release=jessie-backports state=latest
|
apt: name=nginx-light state=latest
|
||||||
|
|
||||||
- name: Create certificate directory
|
- name: Create certificate directory
|
||||||
file: path=/etc/nginx/ssl state=directory mode=0750
|
file: path=/etc/nginx/ssl state=directory mode=0750
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Install ntp
|
- name: Install ntp
|
||||||
apt: name=ntp state=present
|
apt: name=ntp
|
||||||
|
|
||||||
- name: Configure ntp
|
- name: Configure ntp
|
||||||
template: src=ntp.conf.j2 dest=/etc/ntp.conf
|
template: src=ntp.conf.j2 dest=/etc/ntp.conf
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
service: name=yanic enabled=yes
|
service: name=yanic enabled=yes
|
||||||
|
|
||||||
- name: Install system publish unit
|
- name: Install system publish unit
|
||||||
template: src={{item}} dest=/lib/systemd/system/{{item}}
|
template: src={{ item }} dest=/lib/systemd/system/{{ item }}
|
||||||
when: yanic_publisher
|
when: yanic_publisher
|
||||||
with_items:
|
with_items:
|
||||||
- yanic-publish.service
|
- yanic-publish.service
|
||||||
|
Loading…
Reference in New Issue
Block a user