README.md 1.61 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 |
---|---|
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 users , NTP & {{ 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 inventory_generation
- Run
host_info
playbook to<group_foo>
&<group_bar>
:ansible-playbook tasks/host_info.yml -i inventory -e host_list=<group_foo>:<group_bar>