Jérémy Lecour
ee21973371
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2777|524|2253|2462|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Fully Qualified Collection Name
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
- name: Install packages
|
|
ansible.builtin.apt:
|
|
name: rabbitmq-server
|
|
state: present
|
|
|
|
- name: Create rabbitmq-env.conf
|
|
ansible.builtin.copy:
|
|
src: evolinux-rabbitmq-env.conf
|
|
dest: /etc/rabbitmq/rabbitmq-env.conf
|
|
owner: rabbitmq
|
|
group: rabbitmq
|
|
mode: "0600"
|
|
force: no
|
|
|
|
- name: Create rabbitmq.config
|
|
ansible.builtin.copy:
|
|
src: evolinux-rabbitmq.config
|
|
dest: /etc/rabbitmq/rabbitmq.config
|
|
owner: rabbitmq
|
|
group: rabbitmq
|
|
mode: "0600"
|
|
force: no
|
|
|
|
- name: Adjust ulimit
|
|
ansible.builtin.lineinfile:
|
|
dest: /etc/default/rabbitmq-server
|
|
line: ulimit -n 2048
|
|
|
|
- name: is NRPE present ?
|
|
ansible.builtin.stat:
|
|
path: /etc/nagios/nrpe.d/evolix.cfg
|
|
check_mode: no
|
|
register: nrpe_evolix_config
|
|
tags:
|
|
- nrpe
|
|
|
|
- ansible.builtin.include: nrpe.yml
|
|
when: nrpe_evolix_config.stat.exists
|
|
|
|
- name: is Munin present ?
|
|
ansible.builtin.stat:
|
|
path: /etc/munin
|
|
check_mode: no
|
|
register: etc_munin_directory
|
|
tags:
|
|
- nrpe
|
|
|
|
- ansible.builtin.include: munin.yml
|
|
when: etc_munin_directory.stat.exists
|
|
|
|
- name: entry for RabbitMQ in web page is present
|
|
ansible.builtin.lineinfile:
|
|
dest: /var/www/index.html
|
|
insertbefore: '</ul>'
|
|
line: '<li><a href="/rabbitmq.html">RabbitMQ</a></li>'
|