Go to file
2021-04-19 13:15:49 +02:00
group_vars fix issue with drone server url 2021-04-18 16:44:08 +02:00
host_vars review variable for virtual machine 2020-10-08 17:51:52 +02:00
library uodate library aur 2020-01-18 11:40:47 +01:00
roles add roles requirement and gitignore 2021-04-19 13:15:15 +02:00
test-role add drone roles 2021-04-16 08:10:22 +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
ansible-vault-pass.sh add recovery vault password from bitwarden 2021-03-14 20:31:12 +01:00
ansible.cfg add roles to ansible roles path 2021-04-19 13:15:49 +02:00
bootstrap.yml fix issue in provisisonning 2021-03-21 12:45:52 +01:00
build.yml add docker to build 2021-04-14 21:05:15 +02:00
debian.yml add debian specific playbook 2020-07-04 15:30:57 +02:00
global.yml move chisel from glbal to specific playbook 2021-03-21 19:12:30 +01:00
music-player.yml move musi-player role 2020-09-06 22:19:09 +02:00
production review inventory 2021-03-22 21:29:09 +01:00
provisionning.yml review inventory 2021-03-22 21:29:09 +01:00
README.md add recovery vault password from bitwarden 2021-03-14 20:31:12 +01:00
server.yml finalize drone role 2021-04-18 16:15:13 +02:00
site.yml review inventory 2021-03-22 21:29:09 +01:00
staging review inventory 2021-03-22 21:29:09 +01:00
workstation.yml move chisel from glbal to specific playbook 2021-03-21 19:12:30 +01: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 l'identité SSH et bien enregistrer dans l'agent
  • 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