linting
This commit is contained in:
parent
d90cd8ee1c
commit
fb89671b79
5
.ansible-lint
Normal file
5
.ansible-lint
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
exclude_paths:
|
||||||
|
- ./.gitignore
|
||||||
|
- ./library/
|
||||||
|
- ./roles/
|
11
.yamllint
Normal file
11
.yamllint
Normal 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
|
@ -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
|
||||||
|
26
build.yml
26
build.yml
@ -1,17 +1,19 @@
|
|||||||
---
|
---
|
||||||
- hosts: build
|
- hosts: build
|
||||||
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
|
||||||
- php
|
- role: ansible-role-postgresql
|
||||||
- user_config
|
become: true
|
||||||
|
- php
|
||||||
|
- user_config
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: debian
|
- hosts: debian
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- syncthing
|
- syncthing
|
||||||
- msmtp
|
- msmtp
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
remote_user: root
|
remote_user: root
|
||||||
vars:
|
vars:
|
||||||
ansible_password: "{{ vault_default_root }}"
|
ansible_password: "{{ vault_default_root }}"
|
||||||
roles:
|
roles:
|
||||||
- ansible_bootstrap
|
- ansible_bootstrap
|
||||||
|
|
||||||
|
@ -1,86 +1,87 @@
|
|||||||
- 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
|
||||||
scm: 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
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/ansible-drone.git
|
- src: gitea@git.ducamps.win:ansible-roles/ansible-drone.git
|
||||||
scm: 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
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/ansible-pihole.git
|
- src: gitea@git.ducamps.win:ansible-roles/ansible-pihole.git
|
||||||
scm: 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
|
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
|
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
|
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
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/ansible_bootstrap.git
|
- src: gitea@git.ducamps.win:ansible-roles/ansible_bootstrap.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/autofs.git
|
- src: gitea@git.ducamps.win:ansible-roles/autofs.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/bluetooth.git
|
- src: gitea@git.ducamps.win:ansible-roles/bluetooth.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/chainetv.git
|
- src: gitea@git.ducamps.win:ansible-roles/chainetv.git
|
||||||
scm: 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
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/cronie.git
|
- src: gitea@git.ducamps.win:ansible-roles/cronie.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/cups.git
|
- src: gitea@git.ducamps.win:ansible-roles/cups.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/dns.git
|
- src: gitea@git.ducamps.win:ansible-roles/dns.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/docker.git
|
- src: gitea@git.ducamps.win:ansible-roles/docker.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/fail2ban.git
|
- src: gitea@git.ducamps.win:ansible-roles/fail2ban.git
|
||||||
scm: 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
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/gitea.git
|
- src: gitea@git.ducamps.win:ansible-roles/gitea.git
|
||||||
scm: 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
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/hass.git
|
- src: gitea@git.ducamps.win:ansible-roles/hass.git
|
||||||
scm: 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
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/laptop.git
|
- src: gitea@git.ducamps.win:ansible-roles/laptop.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/mariadb.git
|
- src: gitea@git.ducamps.win:ansible-roles/mariadb.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/mpd.git
|
- src: gitea@git.ducamps.win:ansible-roles/mpd.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/msmtp.git
|
- src: gitea@git.ducamps.win:ansible-roles/msmtp.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/nextcloud.git
|
- src: gitea@git.ducamps.win:ansible-roles/nextcloud.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/nginx.git
|
- src: gitea@git.ducamps.win:ansible-roles/nginx.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/nvidia.git
|
- src: gitea@git.ducamps.win:ansible-roles/nvidia.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/php.git
|
- src: gitea@git.ducamps.win:ansible-roles/php.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/php7.git
|
- src: gitea@git.ducamps.win:ansible-roles/php7.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/radicale.git
|
- src: gitea@git.ducamps.win:ansible-roles/radicale.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/rsyncd.git
|
- src: gitea@git.ducamps.win:ansible-roles/rsyncd.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/supysonic.git
|
- src: gitea@git.ducamps.win:ansible-roles/supysonic.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/syncthing.git
|
- src: gitea@git.ducamps.win:ansible-roles/syncthing.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/system.git
|
- src: gitea@git.ducamps.win:ansible-roles/system.git
|
||||||
scm: 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
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/user_config.git
|
- src: gitea@git.ducamps.win:ansible-roles/user_config.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/virt.git
|
- src: gitea@git.ducamps.win:ansible-roles/virt.git
|
||||||
scm: git
|
scm: git
|
||||||
- src: gitea@git.ducamps.win:ansible-roles/workstation.git
|
- src: gitea@git.ducamps.win:ansible-roles/workstation.git
|
||||||
scm: git
|
scm: git
|
||||||
|
88
server.yml
88
server.yml
@ -1,47 +1,55 @@
|
|||||||
---
|
---
|
||||||
- hosts: server
|
- hosts: server
|
||||||
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
|
||||||
- rsyncd
|
- rsyncd
|
||||||
- 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
|
||||||
- php
|
become: true
|
||||||
- nextcloud
|
- role: radicale
|
||||||
- tt-rss
|
become: true
|
||||||
- gitea
|
- role: ansible-drone
|
||||||
- supysonic
|
become: true
|
||||||
- hass
|
- php
|
||||||
- {role: ansible-bitwardenrs , become: yes }
|
- nextcloud
|
||||||
- {role: ansible-role-samba , become: yes }
|
- tt-rss
|
||||||
- chainetv
|
- gitea
|
||||||
- user_config
|
- supysonic
|
||||||
|
- hass
|
||||||
|
- role: ansible-bitwardenrs
|
||||||
|
become: true
|
||||||
|
- role: ansible-role-samba
|
||||||
|
become: true
|
||||||
|
- chainetv
|
||||||
|
- 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
|
||||||
user: "root"
|
-exec paccache -v -r -k 2 -c {} \\;"
|
||||||
name: "paccache job"
|
user: "root"
|
||||||
hour: "4"
|
name: "paccache job"
|
||||||
minute: "0"
|
hour: "4"
|
||||||
state: present
|
minute: "0"
|
||||||
become: true
|
state: present
|
||||||
|
become: true
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- hosts: server
|
- hosts: server
|
||||||
roles:
|
roles:
|
||||||
- ../roles/JDownloader
|
- ../roles/JDownloader
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
|
---
|
||||||
- hosts: server
|
- hosts: server
|
||||||
become: yes
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- ../roles/ansible-bitwardenrs
|
- ../roles/ansible-bitwardenrs
|
||||||
|
@ -4,5 +4,4 @@
|
|||||||
force_site_update: true
|
force_site_update: true
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- ../roles/chainetv
|
- ../roles/chainetv
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
|
---
|
||||||
- hosts: server
|
- hosts: server
|
||||||
become: yes
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- ../roles/ansible-role-chisel
|
- ../roles/ansible-role-chisel
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
|
---
|
||||||
- hosts:
|
- hosts:
|
||||||
- server
|
- server
|
||||||
- build
|
- build
|
||||||
become: yes
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- ../roles/ansible-drone
|
- ../roles/ansible-drone
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- hosts: server
|
- hosts: server
|
||||||
roles:
|
roles:
|
||||||
- ../roles/gitea
|
- ../roles/gitea
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- hosts: server
|
- hosts: server
|
||||||
roles:
|
roles:
|
||||||
- ../roles/hass
|
- ../roles/hass
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- hosts: server
|
- hosts: server
|
||||||
roles:
|
roles:
|
||||||
- ../roles/msmtp
|
- ../roles/msmtp
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
---
|
---
|
||||||
- hosts: server
|
- hosts: server
|
||||||
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
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
|
---
|
||||||
- hosts: server
|
- hosts: server
|
||||||
become: yes
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- ../roles/nginx
|
- ../roles/nginx
|
||||||
|
@ -4,5 +4,4 @@
|
|||||||
force_site_update: true
|
force_site_update: true
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- ../roles/php
|
- ../roles/php
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- hosts: server
|
- hosts: server
|
||||||
vars:
|
vars:
|
||||||
pihole_update_container: true
|
pihole_update_container: true
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
|
---
|
||||||
- hosts: server
|
- hosts: server
|
||||||
become: yes
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- ../roles/ansible-role-postgresql
|
- ../roles/ansible-role-postgresql
|
||||||
|
@ -4,5 +4,4 @@
|
|||||||
supysonic_force_site_update: true
|
supysonic_force_site_update: true
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- ../roles/supysonic
|
- ../roles/supysonic
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
- ../roles/system
|
- ../roles/system
|
||||||
|
@ -4,6 +4,4 @@
|
|||||||
force_site_update: true
|
force_site_update: true
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- ../roles/tt-rss
|
- ../roles/tt-rss
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,21 +1,20 @@
|
|||||||
---
|
---
|
||||||
- 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
|
||||||
- mpd
|
- mpd
|
||||||
- virt
|
- virt
|
||||||
- hass-client-control
|
- hass-client-control
|
||||||
- workstation
|
- workstation
|
||||||
- cups
|
- cups
|
||||||
- grub_themes
|
- grub_themes
|
||||||
- nvidia
|
- nvidia
|
||||||
- hosts: laptop
|
- hosts: laptop
|
||||||
roles:
|
roles:
|
||||||
- laptop
|
- laptop
|
||||||
- bluetooth
|
- bluetooth
|
||||||
|
# - Windows_manager
|
||||||
# - Windows_manager
|
|
||||||
|
Loading…
Reference in New Issue
Block a user