Add rhel6 serial config file/task

This commit is contained in:
Kevin Fenzi 2013-06-04 16:49:08 +00:00
parent 9c14bd50f2
commit 5c6ba16f97
3 changed files with 14 additions and 0 deletions

6
files/common/ttyS0.conf Normal file
View file

@ -0,0 +1,6 @@
start on runlevel [345]
stop on runlevel [S016]
respawn
instance /dev/ttyS0
exec /sbin/agetty ttyS0 115200 vt100-nav

View file

@ -18,6 +18,7 @@
tasks:
- include: $tasks/base.yml
- include: $tasks/serialgetty.yml
- include: $tasks/rkhunter.yml
- include: $tasks/motd.yml
- include: $tasks/sign_setup.yml

7
tasks/serialgetty.yml Normal file
View file

@ -0,0 +1,7 @@
---
- name: upstart serial setup
action: copy src=$files/common/ttyS0.conf dest=/etc/init/ttyS0.conf
only_if: '$is_rhel'
tags:
- configs