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 - name: Cleanup
apt: autoclean=yes apt: autoclean=yes
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'

View File

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

View File

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

View File

@ -2,23 +2,18 @@
- name: Install nslcd - name: Install nslcd
apt: name=nslcd apt: name=nslcd
tags: ldap
- name: Configure nslcd - name: Configure nslcd
template: src=nslcd.conf.j2 dest=/etc/nslcd.conf template: src=nslcd.conf.j2 dest=/etc/nslcd.conf
notify: Restart nslcd notify: Restart nslcd
tags: ldap
- name: Configure nsswitch - name: Configure nsswitch
copy: src=nsswitch.conf dest=/etc/nsswitch.conf copy: src=nsswitch.conf dest=/etc/nsswitch.conf
notify: Restart nscd notify: Restart nscd
tags: ldap
- name: Configure PAM mkhomedir - name: Configure PAM mkhomedir
copy: src=mkhomedir dest=/usr/share/pam-configs/mkhomedir mode=0644 copy: src=mkhomedir dest=/usr/share/pam-configs/mkhomedir mode=0644
notify: Update pam-auth notify: Update pam-auth
tags: ldap
- name: Start the nslcd service - name: Start the nslcd service
service: name=nslcd state=started enabled=yes 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' apt_repository: repo='deb http://httpredir.debian.org/debian stretch-backports main'
- name: Install prometheus - name: Install prometheus
apt: name=prometheus default_release='stretch-backports' apt: name=prometheus default_release=stretch-backports
- name: Configure prometheus - name: Configure prometheus
template: src=prometheus.yml.j2 dest=/etc/prometheus/prometheus.yml template: src=prometheus.yml.j2 dest=/etc/prometheus/prometheus.yml

View File

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