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