From 5994dee9a8b3b1ee97f9e3b3529fd32ffb896187 Mon Sep 17 00:00:00 2001 From: Kenny Woodson Date: Tue, 16 Sep 2014 13:15:48 -0400 Subject: Initial Commit. Sharing is caring --- roles/base_os/files/irbrc | 2 ++ roles/base_os/files/vimrc | 12 ++++++++++++ roles/base_os/tasks/main.yaml | 26 ++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 roles/base_os/files/irbrc create mode 100644 roles/base_os/files/vimrc create mode 100644 roles/base_os/tasks/main.yaml (limited to 'roles/base_os') diff --git a/roles/base_os/files/irbrc b/roles/base_os/files/irbrc new file mode 100644 index 000000000..47374e920 --- /dev/null +++ b/roles/base_os/files/irbrc @@ -0,0 +1,2 @@ +require 'irb/completion' +IRB.conf[:PROMPT_MODE] = :SIMPLE diff --git a/roles/base_os/files/vimrc b/roles/base_os/files/vimrc new file mode 100644 index 000000000..537b944ed --- /dev/null +++ b/roles/base_os/files/vimrc @@ -0,0 +1,12 @@ +set tabstop=4 +set shiftwidth=4 +set expandtab +set list + +"flag problematic whitespace (trailing and spaces before tabs) +"Note you get the same by doing let c_space_errors=1 but +"this rule really applies to everything. +highlight RedundantSpaces term=standout ctermbg=red guibg=red +match RedundantSpaces /\s\+$\| \+\ze\t/ "\ze sets end of match so only spaces highlighted +"use :set list! to toggle visible whitespace on/off +set listchars=tab:>-,trail:.,extends:> diff --git a/roles/base_os/tasks/main.yaml b/roles/base_os/tasks/main.yaml new file mode 100644 index 000000000..ff8cfbe33 --- /dev/null +++ b/roles/base_os/tasks/main.yaml @@ -0,0 +1,26 @@ +--- +# basic role, configures irbrc, vimrc + +- name: Ensure irbrc is installed for user root + copy: > + src=irbrc + dest=/root/.irbrc + +- name: Ensure vimrc is installed for user root + copy: > + src=vimrc + dest=/root/.vimrc + +- name: Ensure vimrc is installed for user root + copy: > + src=vimrc + dest=/root/.vimrc + +- name: Install firewalld + yum: pkg=firewalld state=installed + +- name: enable firewalld service + command: /usr/bin/systemctl enable firewalld.service + +- name: start firewalld service + command: /usr/bin/systemctl start firewalld.service -- cgit v1.2.3