Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
user avatar
Freezed authored
"reset_connection" tip came from:
https://www.jeffgeerling.com/blog/2021/allowing-ansible-playbooks-work-new-user-groups-on-first-run

:passport_control: Remove sudo passwd less add root auth w/ key

Root is accessible from:
 * SSH by key
 * sudo by password

TODO: if keychain is waiting for passphrase, ansible hang
https://www.funtoo.org/Keychain#Quick_Setup
0ddcdb4f
History

forga Ansible base playbook

💡 Idea

Get info and set basic config for Debian and Ubuntu distrib.

Suitable for server and workstation.

✨ Features

playbook  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 10 min
whoami.yml Return message with ansible_user & become_user (sudo method)

🚀 Quickstart

  1. Setup your inventory file from inventory.sample :
    • make inventory_generation
  2. Run host_info playbook to <group_foo> & <group_bar> :
    • ansible-playbook host_info.yml -i inventory -e host_list=<group_foo>:<group_bar>