Add rhel6 serial config file/task
This commit is contained in:
parent
9c14bd50f2
commit
5c6ba16f97
3 changed files with 14 additions and 0 deletions
6
files/common/ttyS0.conf
Normal file
6
files/common/ttyS0.conf
Normal file
|
@ -0,0 +1,6 @@
|
|||
start on runlevel [345]
|
||||
stop on runlevel [S016]
|
||||
|
||||
respawn
|
||||
instance /dev/ttyS0
|
||||
exec /sbin/agetty ttyS0 115200 vt100-nav
|
|
@ -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
7
tasks/serialgetty.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue