This commit is contained in:
vincent 2021-04-22 09:15:26 +02:00
parent d90cd8ee1c
commit fb89671b79
26 changed files with 181 additions and 152 deletions

5
.ansible-lint Normal file
View File

@ -0,0 +1,5 @@
---
exclude_paths:
- ./.gitignore
- ./library/
- ./roles/

11
.yamllint Normal file
View File

@ -0,0 +1,11 @@
---
extends: default
rules:
# 80 chars should be enough, but don't fail if a line is longer
line-length:
max: 80
level: warning
allow-non-breakable-words: true
comments:
min-spaces-from-content: 1

View File

@ -4,6 +4,6 @@
- name: "install python and archlinux-keyring"
raw: pacman -Sy python archlinux-keyring --noconfirm
when: not debian.stdout
gather_facts: no
gather_facts: false
roles:
- ansible_bootstrap
- ansible_bootstrap

View File

@ -1,17 +1,19 @@
---
- hosts: build
pre_tasks:
- name: install terminfo
pacman:
state: present # not required. choices: absent;latest;present. Desired state of the package.
name:
- termite-terminfo # not required. Name or list of names of the packages to install, upgrade, or remove.
become: yes
- name: install terminfo
pacman:
state: present
name:
- termite-terminfo
become: true
vars:
# certbot_force: true
# certbot_force: true
roles:
- docker
- {role: nginx, become: yes }
- {role: ansible-role-postgresql, become: yes }
- php
- user_config
- docker
- role: nginx
become: true
- role: ansible-role-postgresql
become: true
- php
- user_config

View File

@ -1,6 +1,6 @@
---
- hosts: debian
roles:
- syncthing
- msmtp
- syncthing
- msmtp

View File

@ -1,16 +1,15 @@
---
- hosts: music-player
pre_tasks:
- name: install terminfo
pacman:
state: present # not required. choices: absent;latest;present. Desired state of the package.
name:
- termite-terminfo # not required. Name or list of names of the packages to install, upgrade, or remove.
become: yes
- name: install terminfo
pacman:
state: present
name:
- termite-terminfo
become: true
roles:
- user_config
- cronie
- hass-client-control
- mpd
- user_config
- cronie
- hass-client-control
- mpd

View File

@ -7,7 +7,7 @@
- hosts: all
remote_user: root
vars:
ansible_password: "{{ vault_default_root }}"
ansible_password: "{{ vault_default_root }}"
roles:
- ansible_bootstrap

View File

@ -1,86 +1,87 @@
- src: gitea@git.ducamps.win:ansible-roles/JDownloader.git
---
- src: gitea@git.ducamps.win:ansible-roles/JDownloader.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/ansible-arch-provissionning.git
- src: gitea@git.ducamps.win:ansible-roles/ansible-arch-provissionning.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/ansible-bitwardenrs.git
- src: gitea@git.ducamps.win:ansible-roles/ansible-bitwardenrs.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/ansible-drone.git
- src: gitea@git.ducamps.win:ansible-roles/ansible-drone.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/ansible-manager.git
- src: gitea@git.ducamps.win:ansible-roles/ansible-manager.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/ansible-pihole.git
- src: gitea@git.ducamps.win:ansible-roles/ansible-pihole.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/ansible-role-certbot.git
- src: gitea@git.ducamps.win:ansible-roles/ansible-role-certbot.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/ansible-role-chisel.git
- src: gitea@git.ducamps.win:ansible-roles/ansible-role-chisel.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/ansible-role-postgresql.git
- src: gitea@git.ducamps.win:ansible-roles/ansible-role-postgresql.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/ansible-role-samba.git
- src: gitea@git.ducamps.win:ansible-roles/ansible-role-samba.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/ansible_bootstrap.git
- src: gitea@git.ducamps.win:ansible-roles/ansible_bootstrap.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/autofs.git
- src: gitea@git.ducamps.win:ansible-roles/autofs.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/bluetooth.git
- src: gitea@git.ducamps.win:ansible-roles/bluetooth.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/chainetv.git
- src: gitea@git.ducamps.win:ansible-roles/chainetv.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/cloud-commander.git
- src: gitea@git.ducamps.win:ansible-roles/cloud-commander.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/cronie.git
- src: gitea@git.ducamps.win:ansible-roles/cronie.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/cups.git
- src: gitea@git.ducamps.win:ansible-roles/cups.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/dns.git
- src: gitea@git.ducamps.win:ansible-roles/dns.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/docker.git
- src: gitea@git.ducamps.win:ansible-roles/docker.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/fail2ban.git
- src: gitea@git.ducamps.win:ansible-roles/fail2ban.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/gandi-dyn-dns.git
- src: gitea@git.ducamps.win:ansible-roles/gandi-dyn-dns.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/gitea.git
- src: gitea@git.ducamps.win:ansible-roles/gitea.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/grub_themes.git
- src: gitea@git.ducamps.win:ansible-roles/grub_themes.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/hass.git
- src: gitea@git.ducamps.win:ansible-roles/hass.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/hass-client-control.git
- src: gitea@git.ducamps.win:ansible-roles/hass-client-control.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/laptop.git
- src: gitea@git.ducamps.win:ansible-roles/laptop.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/mariadb.git
- src: gitea@git.ducamps.win:ansible-roles/mariadb.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/mpd.git
- src: gitea@git.ducamps.win:ansible-roles/mpd.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/msmtp.git
- src: gitea@git.ducamps.win:ansible-roles/msmtp.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/nextcloud.git
- src: gitea@git.ducamps.win:ansible-roles/nextcloud.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/nginx.git
- src: gitea@git.ducamps.win:ansible-roles/nginx.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/nvidia.git
- src: gitea@git.ducamps.win:ansible-roles/nvidia.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/php.git
- src: gitea@git.ducamps.win:ansible-roles/php.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/php7.git
- src: gitea@git.ducamps.win:ansible-roles/php7.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/radicale.git
- src: gitea@git.ducamps.win:ansible-roles/radicale.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/rsyncd.git
- src: gitea@git.ducamps.win:ansible-roles/rsyncd.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/supysonic.git
- src: gitea@git.ducamps.win:ansible-roles/supysonic.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/syncthing.git
- src: gitea@git.ducamps.win:ansible-roles/syncthing.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/system.git
- src: gitea@git.ducamps.win:ansible-roles/system.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/tt-rss.git
- src: gitea@git.ducamps.win:ansible-roles/tt-rss.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/user_config.git
- src: gitea@git.ducamps.win:ansible-roles/user_config.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/virt.git
- src: gitea@git.ducamps.win:ansible-roles/virt.git
scm: git
- src: gitea@git.ducamps.win:ansible-roles/workstation.git
- src: gitea@git.ducamps.win:ansible-roles/workstation.git
scm: git

View File

@ -1,47 +1,55 @@
---
- hosts: server
pre_tasks:
- name: install terminfo
pacman:
state: present # not required. choices: absent;latest;present. Desired state of the package.
name:
- termite-terminfo # not required. Name or list of names of the packages to install, upgrade, or remove.
become: yes
- name: install terminfo
pacman:
state: present
name:
- termite-terminfo
become: true
vars:
# certbot_force: true
# certbot_force: true
roles:
- role: ansible-role-chisel
become: yes
- syncthing
- msmtp
- cronie
- rsyncd
- gandi-dyn-dns
- fail2ban
- ansible-pihole
- {role: ansible-role-certbot, become: yes} ##need to have a external connection on 80
- {role: nginx, become: yes }
- {role: ansible-role-postgresql, become: yes }
- {role: radicale , become: yes }
- {role: ansible-drone ,become: yes}
- php
- nextcloud
- tt-rss
- gitea
- supysonic
- hass
- {role: ansible-bitwardenrs , become: yes }
- {role: ansible-role-samba , become: yes }
- chainetv
- user_config
- role: ansible-role-chisel
become: true
- syncthing
- msmtp
- cronie
- rsyncd
- gandi-dyn-dns
- fail2ban
- ansible-pihole
- role: ansible-role-certbot
become: true # need to have a external connection on 80
- role: nginx
become: true
- role: ansible-role-postgresql
become: true
- role: radicale
become: true
- role: ansible-drone
become: true
- php
- nextcloud
- tt-rss
- gitea
- supysonic
- hass
- role: ansible-bitwardenrs
become: true
- role: ansible-role-samba
become: true
- chainetv
- user_config
tasks:
- name: create paccache job for arch mirror
cron:
job: "find {{arch_mirror_location}} -type d -exec paccache -v -r -k 2 -c {} \\;"
user: "root"
name: "paccache job"
hour: "4"
minute: "0"
state: present
become: true
- name: create paccache job for arch mirror
cron:
job: "find {{ arch_mirror_location }} -type d
-exec paccache -v -r -k 2 -c {} \\;"
user: "root"
name: "paccache job"
hour: "4"
minute: "0"
state: present
become: true

View File

@ -1,3 +1,4 @@
---
- hosts: server
roles:
- ../roles/JDownloader

View File

@ -1,4 +1,5 @@
---
- hosts: server
become: yes
become: true
roles:
- ../roles/ansible-bitwardenrs

View File

@ -4,5 +4,4 @@
force_site_update: true
roles:
- ../roles/chainetv
- ../roles/chainetv

View File

@ -1,4 +1,5 @@
---
- hosts: server
become: yes
become: true
roles:
- ../roles/ansible-role-chisel

View File

@ -1,6 +1,7 @@
---
- hosts:
- server
- build
become: yes
become: true
roles:
- ../roles/ansible-drone

View File

@ -1,3 +1,4 @@
---
- hosts: server
roles:
- ../roles/gitea

View File

@ -1,3 +1,4 @@
---
- hosts: server
roles:
- ../roles/hass

View File

@ -1,3 +1,4 @@
---
- hosts: server
roles:
- ../roles/msmtp

View File

@ -1,14 +1,12 @@
---
- hosts: server
pre_tasks:
- name: install terminfo
pacman:
state: present # not required. choices: absent;latest;present. Desired state of the package.
name:
- termite-terminfo # not required. Name or list of names of the packages to install, upgrade, or remove.
become: yes
- name: install terminfo
pacman:
state: present
name:
- termite-terminfo
become: true
roles:
- ../roles/nextcloud
- ../roles/nextcloud

View File

@ -1,4 +1,5 @@
---
- hosts: server
become: yes
become: true
roles:
- ../roles/nginx

View File

@ -4,5 +4,4 @@
force_site_update: true
roles:
- ../roles/php
- ../roles/php

View File

@ -1,3 +1,4 @@
---
- hosts: server
vars:
pihole_update_container: true

View File

@ -1,4 +1,5 @@
---
- hosts: server
become: yes
become: true
roles:
- ../roles/ansible-role-postgresql

View File

@ -4,5 +4,4 @@
supysonic_force_site_update: true
roles:
- ../roles/supysonic
- ../roles/supysonic

View File

@ -1,3 +1,4 @@
---
- hosts: all
roles:
- ../roles/system

View File

@ -4,6 +4,4 @@
force_site_update: true
roles:
- ../roles/tt-rss
- ../roles/tt-rss

View File

@ -1,21 +1,20 @@
---
- hosts: workstation
roles:
- role: ansible-role-chisel
become: yes
- syncthing
- user_config
- ansible-manager
- mpd
- virt
- hass-client-control
- workstation
- cups
- grub_themes
- nvidia
- role: ansible-role-chisel
become: true
- syncthing
- user_config
- ansible-manager
- mpd
- virt
- hass-client-control
- workstation
- cups
- grub_themes
- nvidia
- hosts: laptop
roles:
- laptop
- bluetooth
# - Windows_manager
- laptop
- bluetooth
# - Windows_manager