Skip to content
Extraits de code Groupes Projets
Valider c98f9f06 rédigé par Théo - Le Filament's avatar Théo - Le Filament
Parcourir les fichiers

style: update linting rules and format code according to them

parent c120e2da
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -27,7 +27,7 @@ rules:
indentation:
level: warning
indent-sequences: consistent
spaces: 4
spaces: 2
check-multi-line-strings: true
key-duplicates: enable
line-length: disable
......
---
- name: Restart nagios docker
- name: "Restart Nagios container"
community.docker.docker_compose:
project_src: /home/docker/nagios/
project_src: "/home/docker/nagios/"
restarted: true
listen: "restart nagios container"
---
## Install Nagios docker
- name: Create Nagios docker structure on server in /home/docker/nagios
- name: "Create Nagios docker structure on server in /home/docker/nagios"
ansible.builtin.file:
name: "{{ item }}"
state: directory
owner: '999'
group: '1000'
mode: '0755'
owner: "999"
group: "1000"
mode: "0755"
with_items:
- /home/docker/nagios/etc/objects
- /home/docker/nagios/stylesheets
- "/home/docker/nagios/etc/objects"
- "/home/docker/nagios/stylesheets"
- name: Copy nagios docker-compose file
- name: "Copy nagios docker-compose file"
ansible.builtin.template:
src: nagios.yaml.j2
dest: /home/docker/nagios/docker-compose.yaml
mode: '0644'
notify: Restart nagios docker
src: "nagios.yaml.j2"
dest: "/home/docker/nagios/docker-compose.yaml"
mode: "0644"
notify: "restart nagios container"
- name: Copy configuration files
- name: "Copy configuration files"
tags:
- "nagios_config"
ansible.builtin.copy:
src: "{{ item }}"
dest: /home/docker/nagios/etc/{{ item }}
mode: '0644'
owner: '999'
group: '1000'
dest: "/home/docker/nagios/etc/{{ item }}"
mode: "0644"
owner: "999"
group: "1000"
with_items:
- cgi.cfg
- nagios.cfg
- resource.cfg
notify: Restart nagios docker
tags: nagios_config
- "cgi.cfg"
- "nagios.cfg"
- "resource.cfg"
notify: "restart nagios container"
- name: Copy CSS files
- name: "Copy CSS files"
tags:
- "nagios_style"
ansible.builtin.copy:
src: "{{ item }}"
dest: /home/docker/nagios/stylesheets/{{ item }}
mode: '0644'
owner: '999'
group: '1000'
dest: "/home/docker/nagios/stylesheets/{{ item }}"
mode: "0644"
owner: "999"
group: "1000"
with_items:
- avail.css
- checksanity.css
- cmd.css
- common.css
- config.css
- extinfo.css
- histogram.css
- histogramgraph.css
- history.css
- jsonquery.css
- map.css
- map-directive.css
- ministatus.css
- nag_funcs.css
- notifications.css
- outages.css
- showlog.css
- status.css
- statusmap.css
- summary.css
- tac.css
- trends.css
- trendsgraph.css
notify: Restart nagios docker
tags: nagios_config
- "avail.css"
- "checksanity.css"
- "cmd.css"
- "common.css"
- "config.css"
- "extinfo.css"
- "histogram.css"
- "histogramgraph.css"
- "history.css"
- "jsonquery.css"
- "map.css"
- "map-directive.css"
- "ministatus.css"
- "nag_funcs.css"
- "notifications.css"
- "outages.css"
- "showlog.css"
- "status.css"
- "statusmap.css"
- "summary.css"
- "tac.css"
- "trends.css"
- "trendsgraph.css"
notify: "restart nagios docker"
- name: Copy objects configuration files
- name: "Copy objects configuration files"
tags:
- "nagios_config"
ansible.builtin.template:
src: "{{ item }}.j2"
dest: /home/docker/nagios/etc/objects/{{ item }}
mode: '0644'
owner: '999'
group: '1000'
dest: "/home/docker/nagios/etc/objects/{{ item }}"
mode: "0644"
owner: "999"
group: "1000"
with_items:
- vps.cfg
- localhost.cfg
- templates.cfg
- contacts.cfg
- commands.cfg
- timeperiods.cfg
notify: Restart nagios docker
tags: nagios_config
- "vps.cfg"
- "localhost.cfg"
- "templates.cfg"
- "contacts.cfg"
- "commands.cfg"
- "timeperiods.cfg"
notify: "restart nagios container"
- name: Create apache2 dir on server in /home/docker/nagios
- name: "Create apache2 dir on server in /home/docker/nagios"
tags:
- "nagios_webserver"
ansible.builtin.file:
name: /home/docker/nagios/apache2
owner: 'root'
group: 'root'
mode: '0755'
name: "/home/docker/nagios/apache2"
owner: "root"
group: "root"
mode: "0755"
state: directory
- name: Install apache2 configuration files
- name: "Install apache2 configuration files"
tags:
- "nagios_webserver"
ansible.builtin.copy:
src: "{{ item }}"
dest: /home/docker/nagios/apache2/{{ item }}
mode: '0644'
dest: "/home/docker/nagios/apache2/{{ item }}"
mode: "0644"
with_items:
- 000-default.conf
- nagios.conf
notify: Restart nagios docker
- "000-default.conf"
- "nagios.conf"
notify: "restart nagios container"
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter