Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bibigrid/resources/playbook/roles/bibigrid/tasks/003-dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apt:
name: dnsmasq
state: present
tags:
- "image"

- name: Disable and Stop systemd-resolve
systemd:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
name:
- mariadb-server
- python3-pymysql
tags:
- "image"

Check failure on line 7 in bibigrid/resources/playbook/roles/bibigrid/tasks/006-database.yaml

View workflow job for this annotation

GitHub Actions / linting-job

yaml[new-line-at-end-of-file]

No new line character at the end of file
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@
apt:
name: zabbix-agent2
state: present
tags:
- "image"
when: "ansible_distribution_file_variety == 'Debian'"

- name: Install zabbix agent
dnf:
name: zabbix-agent
state: present
tags:
- "image"
when: "ansible_distribution_file_variety == 'RedHat'"

- name: Start and Enable zabbix-agent2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
- python3-pymysql
state: present
update_cache: true
tags:
- "image"
when: "ansible_distribution_file_variety == 'Debian' or ansible_distribution == 'Ubuntu'"

- name: REHL based OS (Install database & Zabbix server)
Expand All @@ -25,6 +27,8 @@
- zabbix-sql-scripts
- python3-pymysql
state: present
tags:
- "image"
when: "ansible_distribution_file_variety == 'RedHat' "

- name: Create zabbix database
Expand Down Expand Up @@ -84,7 +88,7 @@
# -- Zabbix Web Frontend --
# -------------------------

- name: Zabbix Web Frontend related packages for Debian based OS

Check failure on line 91 in bibigrid/resources/playbook/roles/bibigrid/tasks/011-zabbix-server.yaml

View workflow job for this annotation

GitHub Actions / linting-job

key-order[task]

You can improve the task key order to: name, when, tags, block
when: "ansible_distribution_file_variety == 'Debian'"
block:
- name: Install apache web server and php
Expand All @@ -100,8 +104,10 @@
- zabbix-frontend-php
- zabbix-apache-conf
state: present
tags:
- "image"

- name: Zabbix Web Frontend related packages for REHL based OS

Check failure on line 110 in bibigrid/resources/playbook/roles/bibigrid/tasks/011-zabbix-server.yaml

View workflow job for this annotation

GitHub Actions / linting-job

key-order[task]

You can improve the task key order to: name, when, tags, block
when: "ansible_distribution_file_variety == 'RedHat'"
block:
- name: Install apache web server
Expand All @@ -115,6 +121,8 @@
- zabbix-frontend-php
- zabbix-apache-conf
state: present
tags:
- "image"

- name: Create Zabbix web dir (if not exists)
file:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apt:
name: "nfs-kernel-server"
state: present
tags:
- "image"

- name: Create shared directories
file:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apt:
name: "nfs-common"
state: present
tags:
- "image"

- name: Wait for nfs-server available
wait_for:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
url: https://download.docker.com/linux/ubuntu/gpg
keyring: /etc/apt/keyrings/docker.gpg
state: present
tags:
- "image"


- name: Add Docker repository
Expand All @@ -16,6 +18,8 @@
vars:
arch_mapping:
x86_64: amd64
tags:
- "image"

- name: Install Docker
apt:
Expand All @@ -25,7 +29,9 @@
- docker-compose
- docker-compose-plugin
state: present
tags: install
tags:
- "install"
- "image"

- name: Configure Docker
copy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@
apt:
name: slurm-bibigrid-24.11
state: present
tags:
- "image"

- name: Install Slurm package dependencies
apt:
name:
- munge
tags:
- "image"

- name: Create new secret (Munge)
copy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apt:
name: ["python3", "make", "g++", "curl", "git", "pkg-config", "libsecret-1-dev"]
when: ansible_distribution_file_variety == 'Debian'
tags:
- "image"

- name: Install packages
yum:
Expand Down
1 change: 1 addition & 0 deletions bibigrid/resources/playbook/roles/bibigrid/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
when: "ansible_distribution_file_variety == 'Debian'"
tags:
- "pkg"
- "image"
block:
- name: Running 001-apt.yaml
debug:
Expand Down
Loading