README.md 1.73 KiB
forga Ansible base tasks

Idea

Get info and set basic config for Debian and Ubuntu distrib, using Gnome, Mate or no desktop environment.
Suitable for server and workstation.

Features

task | purpose |
---|---|
apt.yml |
Install generic packages |
become_user_cfg.yml |
Set sudo without password for become_user access |
host_info.yml |
Return message with distribution full name & version |
shutdown.yml |
Shutdown target in 5 min (not if host is in production group) |
system_cfg |
Configure root , firewall, NTP, LDP & {{ my_users }} shell |
user_cfg |
Configure {{ my_user }}
|
whoami.yml |
Return message with ansible_user & become_user (sudo method) |

Quickstart

- Setup your
inventory
file frominventory.sample
:make gen_invent
- Run
host_info
playbook to<group_foo>
&<group_bar>
:ansible-playbook tasks/host_info.yml -i inventory -e host_list=<group_foo>:<group_bar>