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
README.md 1.61 KiB
Newer Older
  • Learn to ignore specific revisions
  • Freezed's avatar
    Freezed committed
    forga Ansible base tasks
    ========================
    
    free_zed's avatar
    free_zed committed
    
    
    Freezed's avatar
    Freezed committed
    Get info and set basic config for _Debian_ and _Ubuntu_ distrib, using [_Gnome_](https://www.gnome.org/), [_Mate_](https://mate-desktop.org/) or no desktop environment.
    
    
    Suitable for server and workstation.
    
    
    ✨ Features
    -----------
    
    
    Freezed's avatar
    Freezed committed
    |   task                                                |   purpose                                                             |
    
    |   :--------------------------------------:            |   :--------------------------------------------------------------:    |
    | [`become_user_cfg.yml`](tasks/become_user_cfg.yml)    |   Set `sudo` without password for `become_user` access                |
    | [`host_info.yml`](tasks/host_info.yml)                |   Return message with distribution full name & version                |
    
    | [`shutdown.yml`](tasks/shutdown.yml)                  |   Shutdown target in 5 min (not if host is in production group)       |
    
    Freezed's avatar
    Freezed committed
    | [`system_cfg`](tasks/system_cfg/main.yml)             |   Configure  `root` users , NTP & `{{ my_users }}` shell              |
    | [`user_cfg`](tasks/user_cfg/main.yml)                 |   Configure `{{ my_user }}`                                           |
    
    | [`whoami.yml`](tasks/whoami.yml)                      |   Return message with `ansible_user` & `become_user` (`sudo` method)  |
    
    
    
    🚀 Quickstart
    -------------
    
    1. Setup your `inventory` file from [`inventory.sample`](inventory.sample) :
        - `make inventory_generation`
    1. Run `host_info` playbook to `<group_foo>` & `<group_bar>` :
    
    Freezed's avatar
    Freezed committed
        - `ansible-playbook tasks/host_info.yml -i inventory -e host_list=<group_foo>:<group_bar>`