Minor syntax and whitespaces fixes
This commit is contained in:
parent
6eb71daead
commit
9fae99f8dc
|
@ -4,7 +4,8 @@
|
|||
msg: "Error: empty variable 'admin_users'!"
|
||||
when: admin_users == {}
|
||||
|
||||
- include: adduser_debian.yml user={{ item.value }}
|
||||
- include: adduser_debian.yml
|
||||
user: "{{ item.value }}"
|
||||
with_dict: "{{ admin_users }}"
|
||||
when: ansible_distribution == "Debian"
|
||||
|
||||
|
|
|
@ -124,7 +124,6 @@
|
|||
changed_when: False
|
||||
register: envvar_grep_umask
|
||||
check_mode: no
|
||||
|
||||
tags:
|
||||
- apache
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
changed_when: False
|
||||
check_mode: no
|
||||
|
||||
|
||||
- block:
|
||||
- name: "Create {{ elasticsearch_custom_tmpdir or elasticsearch_default_tmpdir | mandatory }}"
|
||||
file:
|
||||
|
@ -29,4 +28,4 @@
|
|||
- restart elasticsearch
|
||||
tags:
|
||||
- elasticsearch
|
||||
when: elasticsearch_custom_tmpdir or fstab_tmp_noexec|success
|
||||
when: elasticsearch_custom_tmpdir or fstab_tmp_noexec | success
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
- name: reload apache2
|
||||
service:
|
||||
name: apache2
|
||||
state: reloaded
|
||||
name: apache2
|
||||
state: reloaded
|
||||
|
||||
- name: apt update
|
||||
apt:
|
||||
|
|
|
@ -54,7 +54,6 @@
|
|||
stat:
|
||||
path: /etc/nginx/sites-available
|
||||
check_mode: no
|
||||
|
||||
register: nginx_sites_available
|
||||
|
||||
- block:
|
||||
|
@ -87,7 +86,6 @@
|
|||
stat:
|
||||
path: /etc/apache2/sites-available
|
||||
check_mode: no
|
||||
|
||||
register: apache_sites_available
|
||||
|
||||
- block:
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
stat:
|
||||
path: "{{ home }}/.bash_profile"
|
||||
check_mode: no
|
||||
|
||||
register: bash_profile
|
||||
|
||||
- name: install shell trap in {{ home }}/.bash_profile
|
||||
|
@ -17,7 +16,6 @@
|
|||
stat:
|
||||
path: "{{ home }}/.profile"
|
||||
check_mode: no
|
||||
|
||||
register: profile
|
||||
when: not bash_profile.stat.exists
|
||||
|
||||
|
|
|
@ -21,13 +21,11 @@
|
|||
stat:
|
||||
path: /usr/share/logstash/bin/logstash-plugin
|
||||
check_mode: no
|
||||
|
||||
register: logstash_plugin
|
||||
|
||||
- name: is logstash-input-beats installed?
|
||||
shell: grep logstash-input-beats /usr/share/logstash/Gemfile
|
||||
check_mode: no
|
||||
|
||||
register: logstash_plugin_installed
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
|
@ -41,7 +39,6 @@
|
|||
changed_when: False
|
||||
failed_when: False
|
||||
check_mode: no
|
||||
|
||||
register: usr_partition
|
||||
|
||||
- name: Mount /usr in rw
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
- include: ssh.yml
|
||||
|
||||
- include: packages.yml
|
||||
|
||||
- name: Check if /usr is a partition
|
||||
|
@ -9,7 +10,6 @@
|
|||
changed_when: False
|
||||
failed_when: False
|
||||
check_mode: no
|
||||
|
||||
register: usr_partition
|
||||
|
||||
- name: Mount /usr in rw
|
||||
|
@ -20,4 +20,5 @@
|
|||
when: usr_partition.rc == 0
|
||||
|
||||
- include: munin.yml
|
||||
|
||||
- include: images.yml
|
||||
|
|
|
@ -5,14 +5,12 @@
|
|||
stat:
|
||||
path: "{{ mysql_custom_datadir }}"
|
||||
check_mode: no
|
||||
|
||||
register: mysql_custom_datadir_test
|
||||
|
||||
- name: "read the real datadir"
|
||||
command: readlink -f /var/lib/mysql
|
||||
changed_when: False
|
||||
check_mode: no
|
||||
|
||||
register: mysql_current_real_datadir_test
|
||||
tags:
|
||||
- mysql
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
stat:
|
||||
path: /etc/log2mail/config
|
||||
check_mode: no
|
||||
|
||||
register: log2mail_config_dir
|
||||
tags:
|
||||
- mysql
|
||||
|
|
|
@ -121,7 +121,6 @@
|
|||
stat:
|
||||
path: /etc/munin/plugin-conf.d/munin-node
|
||||
check_mode: no
|
||||
|
||||
register: stat_munin_node
|
||||
tags:
|
||||
- nginx
|
||||
|
|
Loading…
Reference in a new issue