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" - name: "install python and archlinux-keyring"
raw: pacman -Sy python archlinux-keyring --noconfirm raw: pacman -Sy python archlinux-keyring --noconfirm
when: not debian.stdout when: not debian.stdout
gather_facts: no gather_facts: false
roles: roles:
- ansible_bootstrap - ansible_bootstrap

View File

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

View File

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

View File

@ -1,3 +1,4 @@
---
- src: gitea@git.ducamps.win:ansible-roles/JDownloader.git - src: gitea@git.ducamps.win:ansible-roles/JDownloader.git
scm: 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

View File

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

View File

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

View File

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

View File

@ -5,4 +5,3 @@
roles: roles:
- ../roles/chainetv - ../roles/chainetv

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -5,4 +5,3 @@
roles: roles:
- ../roles/php - ../roles/php

View File

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

View File

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

View File

@ -5,4 +5,3 @@
roles: roles:
- ../roles/supysonic - ../roles/supysonic

View File

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

View File

@ -5,5 +5,3 @@
roles: roles:
- ../roles/tt-rss - ../roles/tt-rss

View File

@ -2,7 +2,7 @@
- hosts: workstation - hosts: workstation
roles: roles:
- role: ansible-role-chisel - role: ansible-role-chisel
become: yes become: true
- syncthing - syncthing
- user_config - user_config
- ansible-manager - ansible-manager
@ -17,5 +17,4 @@
roles: roles:
- laptop - laptop
- bluetooth - bluetooth
# - Windows_manager
# - Windows_manager