1
0
forked from infra/ansible

cleanup whitespace

This commit is contained in:
Markus 2019-03-09 18:38:07 +01:00
parent e7375cac3e
commit 654c2c0122
6 changed files with 15 additions and 20 deletions

View File

@ -1,5 +1,5 @@
---
# This playbook contains common plays that will be run on all nodes.
- name: Cleanup
apt: autoclean=yes
when: ansible_os_family == 'Debian'

View File

@ -6,8 +6,8 @@
- name: Configure dhcp server
template: src={{ item }}.j2 dest=/etc/{{ item }}
with_items:
- default/isc-dhcp-server
- dhcp/dhcpd.conf
- default/isc-dhcp-server
- dhcp/dhcpd.conf
notify: Restart isc-dhcp-server
- name: Start the dhcp server

View File

@ -13,14 +13,14 @@
template: src={{ item }}.j2 dest=/etc/powerdns/{{ item }}
notify: Restart powerdns
with_items:
- pdns.conf
- recursor.conf
- bindbackend.conf
- bind/23.172.in-addr.arpa.zone
- bind/binary.kitchen.zone
- pdns.conf
- recursor.conf
- bindbackend.conf
- bind/23.172.in-addr.arpa.zone
- bind/binary.kitchen.zone
- name: Start the powerdns services
service: name={{ item }} state=started enabled=yes
with_items:
- pdns
- pdns-recursor
- pdns
- pdns-recursor

View File

@ -2,23 +2,18 @@
- name: Install nslcd
apt: name=nslcd
tags: ldap
- name: Configure nslcd
template: src=nslcd.conf.j2 dest=/etc/nslcd.conf
notify: Restart nslcd
tags: ldap
- name: Configure nsswitch
copy: src=nsswitch.conf dest=/etc/nsswitch.conf
notify: Restart nscd
tags: ldap
- name: Configure PAM mkhomedir
copy: src=mkhomedir dest=/usr/share/pam-configs/mkhomedir mode=0644
notify: Update pam-auth
tags: ldap
- name: Start the nslcd service
service: name=nslcd state=started enabled=yes
tags: ldap

View File

@ -4,7 +4,7 @@
apt_repository: repo='deb http://httpredir.debian.org/debian stretch-backports main'
- name: Install prometheus
apt: name=prometheus default_release='stretch-backports'
apt: name=prometheus default_release=stretch-backports
- name: Configure prometheus
template: src=prometheus.yml.j2 dest=/etc/prometheus/prometheus.yml

View File

@ -20,15 +20,15 @@
- name: Configure radius server
template: src={{ item }}.j2 dest=/etc/freeradius/3.0/{{ item }} owner=freerad group=freerad
with_items:
- clients.conf
- clients.conf
notify: Restart freeradius
- name: Configure radius server
copy: src={{ item }} dest=/etc/freeradius/3.0/{{ item }} owner=freerad group=freerad
with_items:
- mods-available/eap
- mods-config/files/authorize
- sites-available/default
- mods-available/eap
- mods-config/files/authorize
- sites-available/default
notify: Restart freeradius
- name: Start the radius server