This role can be used to boostrap new servers, or update server.
None. Only servers who can be managed by Ansible
- package_state: (Default: present)
- update: (Default: False) Do a package upgrade
- system_timezone: (not defined by default) Set the system timezone
- users: (Default: empty) Create user, and set it in groups
exemple :
users:
bob:
groups: wheel,toto
- ssh_key: (Default: empty) Setup ssh keys
exemple :
ssh_key:
- name: "bob" # User who will get the public ssh keys on his .authorized_key
state: "present" # The pub key should be present
ssh_key:
- "PUBKEY 1"
- "PUBKEY 2"
- epel: Install EPEL repository
- kernel_number: Default: 1) number of old kernel to keep
- selinux_state: (Default: enforcing) Set the state of SELinux
- selinux_policy: (Default: targeted) Set the policy of SELinux
No dependencies.
Simple playbook:
- hosts: servers
roles:
- common
BSD
if you break something with this ansible role, i will not responsible.