Go to file
vincent 417e6adf0b
Some checks failed
continuous-integration/drone/push Build is failing
feat: kepp user config in dedicated role
2023-01-15 16:57:12 +01:00
group_vars feat: kepp user config in dedicated role 2023-01-15 16:57:12 +01:00
host_vars split ansible playboot betwen server and workstation see homelab repo for server 2022-06-19 14:51:37 +02:00
library uodate library aur 2020-01-18 11:40:47 +01:00
playbooks feat: kepp user config in dedicated role 2023-01-15 16:57:12 +01:00
roles feat: kepp user config in dedicated role 2023-01-15 16:57:12 +01:00
.ansible-lint linting 2021-04-22 09:44:46 +02:00
.drone.yml add .drone.yml 2021-04-22 10:28:30 +02:00
.gitignore add vault file 2019-04-09 17:39:04 +02:00
.gitmodules add git module aur 2019-04-11 18:50:53 +02:00
.markdownlint.yaml add .markdownlint.yaml 2021-04-22 10:44:36 +02:00
.yamllint linting 2021-04-22 09:44:46 +02:00
ansible.cfg merge dict 2022-04-27 20:24:43 +02:00
makefile split ansible playboot betwen server and workstation see homelab repo for server 2022-06-19 14:51:37 +02:00
production split ansible playboot betwen server and workstation see homelab repo for server 2022-06-19 14:51:37 +02:00
provisionning.yml modify ansible user 2022-11-19 18:10:36 +01:00
README.md Update readme 2022-10-16 09:30:48 +02:00
site.yml feat: kepp user config in dedicated role 2023-01-15 16:57:12 +01:00
staging split ansible playboot betwen server and workstation see homelab repo for server 2022-06-19 14:51:37 +02:00

ansible

commande ansible

launch playbook on staging `ansible-playbook -i staging site.yml --vault-password-file=./ansible-vault-pass.sh

init new role architecture ansible-galaxy user_config init

launch ansible bootstrap ansible-playbook -i nas, bootstrap.yml -u root --ask-pass

encrypt string ansible-vault encrypt_string

avant de lancer le playbook

  • vérifier que un token vault est bien setté dans la variable VAULT_TOKEN
  • si la machine a déja une partie des logiciel instalé forcé l'upgrade (il vaut mieux partir d'une machien from scratch que d'une machine a moitier passé par le playbook)
  • si le role userconfig est déja descendu s'assurer que le repo local de la machine n'a pas de modification a pushé

Prerequis

  • python
  • sudo

TODO

Global Roles

  • system role:

    • install ansible aur module
    • soft install (zsh,vim,)
  • user profil config

  • ansible bootstrap

    • install python
    • install sudo
    • create user
    • copy clé RSA
  • samba automount role

    • géré les credential en fichier
    • initialisé les variable pour les diferent périphérique
  • davfs mount

  • VM server

  • syncthing role

Workstation roles

  • mpd role

  • ansible manager

    • install ansible
    • install ansible aur module
    • clone ansible repo
  • workstation role

  • -need to check for nvidia drver

  • cups

  • bluetooth et tlp pour laptop

  • grubtheme

Server Roles

  • terminfo

  • server role

    • cron
    • msmtp
  • rsyncd role

  • failtoban role

  • nginx/php role

    • install
    • config
  • dns role -slave/primary

  • mariadb role

    • install
    • config
    • (voir pouquoi l'init de mysql ne fonctionne pas dans ansible)
  • tt-rss role

    • depend nginx & madiadb role
    • fail2ban jail
  • gitea role

    • depend of mariadb role
  • backup role?

    • controle du reboot

global improvment

  • voir pour compatibiliser debian
  • variabiliser