base: Remove all depencies to other than base packages
This commit is contained in:
parent
a1c96a5369
commit
74edead676
4 changed files with 14 additions and 11 deletions
12
roles/base/README.md
Normal file
12
roles/base/README.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
## Ansible Role: base
|
||||||
|
|
||||||
|
This role is applied to all hosts. This role must not have any package
|
||||||
|
depencies outside operating system's base packages.
|
||||||
|
|
||||||
|
### Basic service
|
||||||
|
|
||||||
|
This role will install and configure following base services using
|
||||||
|
operating system default software:
|
||||||
|
* mail sending to local (foo.sh) addresses using smtps port
|
||||||
|
* system logging to remote host
|
||||||
|
* ssh server (tighten crypto settings)
|
|
@ -14,9 +14,6 @@
|
||||||
state: installed
|
state: installed
|
||||||
with_items:
|
with_items:
|
||||||
- bash # lots of scripts rely on this
|
- bash # lots of scripts rely on this
|
||||||
- emacs--no_x11 # better editor :)
|
|
||||||
- htop # system monitoring
|
|
||||||
- iftop # monitor interfaces
|
|
||||||
- vim--no_x11 # we need real vim
|
- vim--no_x11 # we need real vim
|
||||||
|
|
||||||
- name: disable nightly cron noise
|
- name: disable nightly cron noise
|
||||||
|
@ -54,6 +51,7 @@
|
||||||
include_role:
|
include_role:
|
||||||
name: "{{ role }}"
|
name: "{{ role }}"
|
||||||
with_items:
|
with_items:
|
||||||
|
- opensmtpd
|
||||||
- pf
|
- pf
|
||||||
- syslogd
|
- syslogd
|
||||||
loop_control:
|
loop_control:
|
||||||
|
|
|
@ -1,15 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: enable epel repository
|
|
||||||
package:
|
|
||||||
name: epel-release
|
|
||||||
state: installed
|
|
||||||
|
|
||||||
- name: install os specific roles
|
- name: install os specific roles
|
||||||
include_role:
|
include_role:
|
||||||
name: "{{ role }}"
|
name: "{{ role }}"
|
||||||
with_items:
|
with_items:
|
||||||
- selinux # selinux first to get fcontexts working
|
- selinux # selinux first to get fcontexts working
|
||||||
- iptables
|
- iptables
|
||||||
|
- postfix
|
||||||
- rsyslog
|
- rsyslog
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: role
|
loop_var: role
|
||||||
|
@ -20,8 +16,6 @@
|
||||||
state: installed
|
state: installed
|
||||||
with_items:
|
with_items:
|
||||||
- bind-utils # dig
|
- bind-utils # dig
|
||||||
- htop # system monitoring
|
|
||||||
- iftop # monitor interfaces
|
|
||||||
- iotop # monitor io usage
|
- iotop # monitor io usage
|
||||||
- mailx # send mail from cmd
|
- mailx # send mail from cmd
|
||||||
- nc # netcat
|
- nc # netcat
|
||||||
|
|
|
@ -63,7 +63,6 @@
|
||||||
name: "{{ role }}"
|
name: "{{ role }}"
|
||||||
with_items:
|
with_items:
|
||||||
- network
|
- network
|
||||||
- opensmtpd
|
|
||||||
- pki
|
- pki
|
||||||
- psacct
|
- psacct
|
||||||
loop_control:
|
loop_control:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue