common
common - base system role
- CA x509
- client OpenLDAP + config
- config mail relay (only
is_mailrelay == False and mailrelay != ''
)- Debian: postfix
- FreeBSD: sendmail
- OpenBSD: smtpd
- lignes de config sshd (en variables, voir defaults/main.yml)
- syslog centralisé:
- sauf si
is_syslogd=True
- seulement si
syslog_server
existe
- sauf si
- deploiement des cles ssh
files/cles_ssh/*.pub
- /usr/local/admin/sysutils/common depuis GIT (et plus selon variables)
- cron daily/weekly ecm (et supression des anciens de CVS)
- snmpd (TODO: Debian et OpenBSD)
- preferred shell pour root + it's config + aliases
- packages supplementaires (variable
pkgs
)
templates and files
sshd config and authorized keys
- Files matching
cles_ssh/*.pub
will be authorized on root account - Files matching
cles_ssh/*.del
will be removed - vimrc file in files/ will be installed as /root/.vimrc
ssh keys
- Files matching
{{ playbook_dir }}/files/ssh/{{ inventory_hostname }}/ssh_host.*_key(.pub)?
will be installed on host's ssh daemon.
Variables
host_timezone
(Europe/Paris)is_resolver
(False) if True, will use 127.0.0.1 in resolv.conf firstresolvers
( [{ network='0.0.0.0/0', ip='8.8.8.8' }] ) list of dicts, ip will be used if host match network (in listed order)dns64_resolvers ([])
for IP6-only hosts, overridesresolvers
mechanism with DNS64-enabled resolversrootmailto
() mail to forward root's mailgits_root
('/root') path for relative path ingits
gits_group ('')
group to own gits_rootgits_mode ('0750')
dir mode for gits_rootgits
,host_gits
,group_gits
androle_gits
([]) lists of dicts: each MUST have at leastrepo
: git url to clone theredest
: destination path (absolute or relative to gits_root) and MAY have:umask
('0022')update
(False)version
(master)
crons
,host_crons
,role_crons
: list of dicts for cron moduleocsinventory_server
('') If present, install and configure openinventory-agentroot_shell
(zsh) Set your preferred one here :) (or set it empty to skip all this) put your rc file in {{ playbook_dir }}/files/{{ root_shell }}rcdo_smart (True if not jail/vm)
configure smartd for disks alertssmart_mailto ('')
Here comes your email address if you wish to receive alerts by mailbackup_dir (files/backups/{{ inventory_hostname }})
copy ssh host keys and restore /root/ files from here if anymonitoring_from ([])
list of networks to allow for snmphttp_proxy ('')
To set http_proxy and https_proxy global values (FreeBSD only)
FreeBSD specific
pkg_repo_conf
(pkgecm.conf) name of a pkg repo config file to be installed firstis_jail
(False) if True, will skip hardware monitoring tools (smart, ipmi, snmp, dmidecode)freebsd_base_pkgs ([git,rsync,vim-console,root_shell])
list of packages to install
OpenBSD specific
openbsd_base_pkgs ([git,rsync,vim--no_x11,root_shell])
list of packages to installopenbsd_pkg_mirror ("http://ftp.openbsd.org")
mirror to use
Debian specific
debian_base_pkgs (git,rsync,vim,root_shell])
list of packages to install
Packages
pkgs
([]) additionnal packages to install using distribution's package systemhost_pkgs
role_pkgs
([]) other packages defined in inventory or roles (or whatever)
Syslog
syslog_server
() If defined, all logs will be send theresyslog_auth_server
(syslog_server
) Auth logs will be send there
x509
x509_ca_file
('') source file for x509 AC certificate(s)x509_ca_path
(/etc/ssl/ca.crt) dest path for above cert file
Mailrelay
is_mailrelay
(False) Does not configure mail relay if Truemailrelay
() If defined, name/IP of the mail relay
Ssh
sshd_allow_groups
('') define AllowGroups in/etc/ssh/sshd_config
LDAP basic config
ldap_base
('') baseDN ldap (for ldap.conf)ldap_uri
('ldaps://ldapr.univ.fr/ ldaps://ldap.univ.fr/') URI for ldap.confldap_tls_reqcert
(never) value for same name in ldap.conf
Network Time Protocol (ntp)
If any of ntp_servers
or ntp_pools
is non-empty
the role will take care of ntp(d).conf and ntp service
ntp_servers
([]) list of ntp serversntp_pools
([]) list of ntp poolsntp_listen_addrs
([]) IP's to listen to (OpenBSD won't listen anywhere without it, can be '*')
Install
ansible-galaxy install criecm/ansible-role-common
License
Unknown
Downloads
62209
Owner
Direction des Systèmes d'Information