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
|
||||||
|
12
build.yml
12
build.yml
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
32
server.yml
32
server.yml
@ -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"
|
||||||
|
@ -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
|
||||||
|
@ -5,4 +5,3 @@
|
|||||||
|
|
||||||
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
|
||||||
|
@ -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
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
|
---
|
||||||
- hosts: server
|
- hosts: server
|
||||||
become: yes
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- ../roles/nginx
|
- ../roles/nginx
|
||||||
|
@ -5,4 +5,3 @@
|
|||||||
|
|
||||||
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
|
||||||
|
@ -5,4 +5,3 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
- ../roles/supysonic
|
- ../roles/supysonic
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
- ../roles/system
|
- ../roles/system
|
||||||
|
@ -5,5 +5,3 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
- ../roles/tt-rss
|
- ../roles/tt-rss
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user