Add names to many blocks
This commit is contained in:
parent
3b258cc43e
commit
6801f4e00e
|
@ -24,7 +24,8 @@
|
|||
path: /usr/sbin/apachectl
|
||||
register: is_apache
|
||||
|
||||
- block:
|
||||
- name: ACME challenge for Apache
|
||||
block:
|
||||
- name: ACME challenge for Apache is installed
|
||||
template:
|
||||
src: acme-challenge/apache.conf.j2
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
check_mode: no
|
||||
register: munin_node_plugins_config
|
||||
|
||||
- block:
|
||||
- name: Munin plugins are present and configured
|
||||
block:
|
||||
- name: Install munin plugin
|
||||
copy:
|
||||
src: munin_plugin
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
|
||||
- block:
|
||||
- name: Set real datadir value when customized
|
||||
block:
|
||||
- name: "Is custom datadir present ?"
|
||||
stat:
|
||||
path: "{{ elasticsearch_custom_datadir }}"
|
||||
|
@ -18,7 +19,8 @@
|
|||
- elasticsearch_custom_datadir != ''
|
||||
- elasticsearch_custom_datadir != None
|
||||
|
||||
- block:
|
||||
- name: Datadir is moved to custom path
|
||||
block:
|
||||
- name: elasticsearch is stopped
|
||||
service:
|
||||
name: elasticsearch
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
system: yes
|
||||
shell: /bin/false
|
||||
|
||||
- block:
|
||||
- name: Head plugin is installed
|
||||
block:
|
||||
- name: Head repository is checked-out
|
||||
git:
|
||||
repo: "https://github.com/mobz/elasticsearch-head.git"
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
changed_when: False
|
||||
check_mode: no
|
||||
|
||||
- block:
|
||||
- name: Tmpdir is moved to custom path
|
||||
block:
|
||||
- name: "Create {{ elasticsearch_custom_tmpdir or elasticsearch_default_tmpdir | mandatory }}"
|
||||
file:
|
||||
path: "{{ elasticsearch_custom_tmpdir or elasticsearch_default_tmpdir | mandatory }}"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
|
||||
- block:
|
||||
- name: Use backports for jessie
|
||||
block:
|
||||
- name: install jessie-backports
|
||||
include_role:
|
||||
name: evolix/apt
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
|
||||
# SSL cert
|
||||
|
||||
- block:
|
||||
|
||||
- name: Default certificate is present
|
||||
block:
|
||||
- name: Create private key and csr for default site ({{ ansible_fqdn }})
|
||||
command: openssl req -newkey rsa:2048 -sha256 -nodes -keyout /etc/ssl/private/{{ ansible_fqdn }}.key -out /etc/ssl/{{ ansible_fqdn }}.csr -batch -subj "/CN={{ ansible_fqdn }}"
|
||||
args:
|
||||
|
|
|
@ -33,7 +33,8 @@
|
|||
changed_when: "'FAILED' in raidmodel.stdout"
|
||||
failed_when: "'FAILED' in raidmodel.stdout"
|
||||
|
||||
- block:
|
||||
- name: HP Smart Array package is present
|
||||
block:
|
||||
- name: Add HPE GPG key
|
||||
apt_key:
|
||||
#url: https://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub
|
||||
|
@ -64,7 +65,8 @@
|
|||
state: started
|
||||
when: "'Hewlett-Packard Company Smart Array' in raidmodel.stdout"
|
||||
|
||||
- block:
|
||||
- name: MegaRAID SAS package is present
|
||||
block:
|
||||
- name: Add HW tool GPG key
|
||||
apt_key:
|
||||
# url: https://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key
|
||||
|
|
|
@ -54,11 +54,12 @@
|
|||
changed_when: false
|
||||
when: filebeat_logstash_plugin and logstash_plugin.stat.exists
|
||||
|
||||
- block:
|
||||
- name: Logstash plugin is installed
|
||||
block:
|
||||
- include_role:
|
||||
name: evolix/remount-usr
|
||||
|
||||
- name: Logstash plugin is installed
|
||||
- name: logstash-plugin install logstash-input-beats
|
||||
command: /usr/share/logstash/bin/logstash-plugin install logstash-input-beats
|
||||
when:
|
||||
- filebeat_logstash_plugin
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
|
||||
- block:
|
||||
- name: Set images path when customized
|
||||
block:
|
||||
- name: "Is {{ kvm_custom_libvirt_images_path }} present ?"
|
||||
stat:
|
||||
path: "{{ kvm_custom_libvirt_images_path }}"
|
||||
|
@ -14,7 +15,8 @@
|
|||
register: kvm_libvirt_images_current_real_path_test
|
||||
when: kvm_custom_libvirt_images_path != ''
|
||||
|
||||
- block:
|
||||
- name: Images directory is moved to custom path
|
||||
block:
|
||||
- name: "Move libvirt images to {{ kvm_custom_libvirt_images_path }}"
|
||||
command: mv /var/lib/libvirt/images {{ kvm_custom_libvirt_images_path }}
|
||||
args:
|
||||
|
|
Loading…
Reference in New Issue