Cleanup (mostly apt: state=present).

This commit is contained in:
Markus 2017-07-02 22:17:32 +02:00
parent c7e4dd4173
commit 7e856c2923
14 changed files with 19 additions and 31 deletions

View File

@ -1,7 +1,7 @@
--- ---
- name: Install snmpd - name: Install snmpd
apt: name=snmpd state=present apt: name=snmpd
tags: snmp tags: snmp
- name: Make snmpd less verbose - name: Make snmpd less verbose
@ -19,7 +19,7 @@
tags: snmp tags: snmp
- name: Install misc software - name: Install misc software
apt: name={{ item }} state=present apt: name={{ item }}
with_items: with_items:
- apt-dater-host - apt-dater-host
- dnsutils - dnsutils

View File

@ -1,7 +1,7 @@
--- ---
- name: Install snmpd - name: Install snmpd
pkgng: name=net-snmp state=present pkgng: name=net-snmp
tags: snmp tags: snmp
- name: Configure snmpd - name: Configure snmpd
@ -14,7 +14,7 @@
tags: snmp tags: snmp
- name: Install misc software - name: Install misc software
pkgng: name={{ item }} state=present pkgng: name={{ item }}
with_items: with_items:
- vim-lite - vim-lite
- htop - htop

View File

@ -1,7 +1,7 @@
--- ---
- name: Install dependencies - name: Install dependencies
apt: name={{ item }} state=present apt: name={{ item }}
with_items: with_items:
- python-flask - python-flask
- python-flaskext.wtf - python-flaskext.wtf
@ -12,7 +12,7 @@
- uwsgi - uwsgi
#- name: Install bk-dss #- name: Install bk-dss
# git: repo=https://github.com/moepman/bk-diss.git dest=/var/www/dss depth=1 version=b1e0035e83dcf533610423a1cf4374e6c6dbf3d8 # git: repo=https://github.com/moepman/bk-diss.git dest=/var/www/dss depth=1 version=ca364a7dd456b7f6060213102d136148784b6a47
# TODO Configure bk-dss # TODO Configure bk-dss

View File

@ -1,7 +1,7 @@
--- ---
- name: Enable https for apt - name: Enable https for apt
apt: name=apt-transport-https state=present apt: name=apt-transport-https
- name: Enable gogs apt-key - name: Enable gogs apt-key
apt_key: url='https://deb.packager.io/key' apt_key: url='https://deb.packager.io/key'
@ -13,7 +13,7 @@
apt: name=gogs state=latest apt: name=gogs state=latest
- name: Install PostgreSQL - name: Install PostgreSQL
apt: name={{ item }} state=present apt: name={{ item }}
with_items: with_items:
- postgresql - postgresql
- python-psycopg2 - python-psycopg2

View File

@ -1,7 +1,7 @@
--- ---
- name: Install nslcd - name: Install nslcd
apt: name=nslcd state=present apt: name=nslcd
tags: ldap tags: ldap
- name: Configure nslcd - name: Configure nslcd

View File

@ -1,7 +1,7 @@
--- ---
- name: Install dependencies - name: Install dependencies
apt: name={{ item }} state=present apt: name={{ item }}
with_items: with_items:
- fping - fping
- git - git

View File

@ -1,7 +1,7 @@
--- ---
- name: Install packages - name: Install packages
apt: name={{ item }} state=present apt: name={{ item }}
with_items: with_items:
- amavisd-new - amavisd-new
- bsd-mailx - bsd-mailx

View File

@ -1,7 +1,7 @@
--- ---
- name: Install software for members - name: Install software for members
apt: name={{ item }} state=present apt: name={{ item }}
with_items: with_items:
- apt-dater - apt-dater
- git - git

View File

@ -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

View File

@ -1,7 +1,7 @@
--- ---
- name: Install packages - name: Install packages
apt: name={{ item }} state=present apt: name={{ item }}
with_items: with_items:
- php7.0-apcu - php7.0-apcu
- php7.0-curl - php7.0-curl

View File

@ -1,7 +1,7 @@
--- ---
- name: Install dependencies - name: Install dependencies
apt: name={{ item }} state=present apt: name={{ item }}
with_items: with_items:
- prosody - prosody
- lua-cyrussasl - lua-cyrussasl

View File

@ -1,7 +1,7 @@
--- ---
- name: Install dependencies - name: Install dependencies
apt: name={{ item }} state=present apt: name={{ item }}
with_items: with_items:
- mysql-server - mysql-server
- php5-fpm - php5-fpm

View File

@ -1,22 +1,15 @@
--- ---
- name: Install slapd - name: Install slapd
apt: name={{ item }} state=present apt: name=slapd
with_items:
- slapd
tags: ldap
- name: Install slapd - name: Install slapd
apt: name={{ item }} state=present apt: name=slapd-smbk5pwd
with_items:
- slapd-smbk5pwd
when: slapd_role == "master" when: slapd_role == "master"
tags: ldap
- name: Remove slapd.d - name: Remove slapd.d
file: path=/etc/ldap/slapd.d state=absent file: path=/etc/ldap/slapd.d state=absent
notify: Restart slapd notify: Restart slapd
tags: ldap
- name: Copy schema definitons - name: Copy schema definitons
copy: src={{ item }} dest=/etc/ldap/{{ item }} copy: src={{ item }} dest=/etc/ldap/{{ item }}
@ -25,23 +18,18 @@
- schema/samba.schema - schema/samba.schema
- schema/kitchen.schema - schema/kitchen.schema
notify: Restart slapd notify: Restart slapd
tags: ldap
- name: Configure slapd (init script) - name: Configure slapd (init script)
copy: src=slapd dest=/etc/default/slapd copy: src=slapd dest=/etc/default/slapd
notify: Restart slapd notify: Restart slapd
tags: ldap
- name: Configure slapd - name: Configure slapd
template: src=slapd.conf.j2 dest=/etc/ldap/slapd.conf template: src=slapd.conf.j2 dest=/etc/ldap/slapd.conf
notify: Restart slapd notify: Restart slapd
tags: ldap
- name: Ensure certificates are available - name: Ensure certificates are available
command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/ldap/ssl/srv.key -out /etc/ldap/ssl/srv.crt -days 730 -subj "/CN={{ slapd_hostname }}" creates=/etc/ldap/ssl/srv.crt command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/ldap/ssl/srv.key -out /etc/ldap/ssl/srv.crt -days 730 -subj "/CN={{ slapd_hostname }}" creates=/etc/ldap/ssl/srv.crt
notify: Restart slapd notify: Restart slapd
tags: ldap
- name: Start slapd - name: Start slapd
service: name=slapd state=started enabled=yes service: name=slapd state=started enabled=yes
tags: ldap

View File

@ -1,7 +1,7 @@
--- ---
- name: Install dependencies - name: Install dependencies
apt: name={{ item }} state=present apt: name={{ item }}
with_items: with_items:
- php5-fpm - php5-fpm
- php5-ldap - php5-ldap