Minor syntax and whitespaces fixes

This commit is contained in:
Jérémy Lecour 2017-05-19 22:29:28 +02:00
parent 6eb71daead
commit 9fae99f8dc
14 changed files with 12 additions and 23 deletions

View file

@ -4,7 +4,8 @@
msg: "Error: empty variable 'admin_users'!" msg: "Error: empty variable 'admin_users'!"
when: admin_users == {} when: admin_users == {}
- include: adduser_debian.yml user={{ item.value }} - include: adduser_debian.yml
user: "{{ item.value }}"
with_dict: "{{ admin_users }}" with_dict: "{{ admin_users }}"
when: ansible_distribution == "Debian" when: ansible_distribution == "Debian"

View file

@ -124,7 +124,6 @@
changed_when: False changed_when: False
register: envvar_grep_umask register: envvar_grep_umask
check_mode: no check_mode: no
tags: tags:
- apache - apache

View file

@ -6,7 +6,6 @@
failed_when: False failed_when: False
changed_when: False changed_when: False
check_mode: no check_mode: no
- block: - block:
- name: "Create {{ elasticsearch_custom_tmpdir or elasticsearch_default_tmpdir | mandatory }}" - name: "Create {{ elasticsearch_custom_tmpdir or elasticsearch_default_tmpdir | mandatory }}"
@ -29,4 +28,4 @@
- restart elasticsearch - restart elasticsearch
tags: tags:
- elasticsearch - elasticsearch
when: elasticsearch_custom_tmpdir or fstab_tmp_noexec|success when: elasticsearch_custom_tmpdir or fstab_tmp_noexec | success

View file

@ -7,8 +7,8 @@
- name: reload apache2 - name: reload apache2
service: service:
name: apache2 name: apache2
state: reloaded state: reloaded
- name: apt update - name: apt update
apt: apt:

View file

@ -54,7 +54,6 @@
stat: stat:
path: /etc/nginx/sites-available path: /etc/nginx/sites-available
check_mode: no check_mode: no
register: nginx_sites_available register: nginx_sites_available
- block: - block:
@ -87,7 +86,6 @@
stat: stat:
path: /etc/apache2/sites-available path: /etc/apache2/sites-available
check_mode: no check_mode: no
register: apache_sites_available register: apache_sites_available
- block: - block:

View file

@ -2,7 +2,6 @@
stat: stat:
path: "{{ home }}/.bash_profile" path: "{{ home }}/.bash_profile"
check_mode: no check_mode: no
register: bash_profile register: bash_profile
- name: install shell trap in {{ home }}/.bash_profile - name: install shell trap in {{ home }}/.bash_profile
@ -17,7 +16,6 @@
stat: stat:
path: "{{ home }}/.profile" path: "{{ home }}/.profile"
check_mode: no check_mode: no
register: profile register: profile
when: not bash_profile.stat.exists when: not bash_profile.stat.exists

View file

@ -21,13 +21,11 @@
stat: stat:
path: /usr/share/logstash/bin/logstash-plugin path: /usr/share/logstash/bin/logstash-plugin
check_mode: no check_mode: no
register: logstash_plugin register: logstash_plugin
- name: is logstash-input-beats installed? - name: is logstash-input-beats installed?
shell: grep logstash-input-beats /usr/share/logstash/Gemfile shell: grep logstash-input-beats /usr/share/logstash/Gemfile
check_mode: no check_mode: no
register: logstash_plugin_installed register: logstash_plugin_installed
failed_when: false failed_when: false
changed_when: false changed_when: false
@ -41,7 +39,6 @@
changed_when: False changed_when: False
failed_when: False failed_when: False
check_mode: no check_mode: no
register: usr_partition register: usr_partition
- name: Mount /usr in rw - name: Mount /usr in rw

View file

@ -1,5 +1,6 @@
--- ---
- include: ssh.yml - include: ssh.yml
- include: packages.yml - include: packages.yml
- name: Check if /usr is a partition - name: Check if /usr is a partition
@ -9,7 +10,6 @@
changed_when: False changed_when: False
failed_when: False failed_when: False
check_mode: no check_mode: no
register: usr_partition register: usr_partition
- name: Mount /usr in rw - name: Mount /usr in rw
@ -20,4 +20,5 @@
when: usr_partition.rc == 0 when: usr_partition.rc == 0
- include: munin.yml - include: munin.yml
- include: images.yml - include: images.yml

View file

@ -12,7 +12,7 @@
changed_when: false changed_when: false
- name: Print ssh public keys - name: Print ssh public keys
debug: debug:
msg: "{{ ssh_keys.stdout }}" msg: "{{ ssh_keys.stdout }}"
- name: Autorize other kvm ssh key - name: Autorize other kvm ssh key
@ -26,7 +26,7 @@
- "{{ groups['hypervisors'] }}" - "{{ groups['hypervisors'] }}"
when: item[1] != inventory_hostname when: item[1] != inventory_hostname
- name: Crontab for sync libvirt xml file - name: Crontab for sync libvirt xml file
cron: cron:
name: "sync libvirt xml on {{ item }}" name: "sync libvirt xml on {{ item }}"
state: present state: present
@ -37,7 +37,7 @@
- "{{ groups['hypervisors'] }}" - "{{ groups['hypervisors'] }}"
when: item != inventory_hostname when: item != inventory_hostname
- name: Crontab for sync list of running vm - name: Crontab for sync list of running vm
cron: cron:
name: "sync list of libvirt running vm on {{ item }}" name: "sync list of libvirt running vm on {{ item }}"
state: present state: present

View file

@ -4,4 +4,4 @@
dest: /etc/init.d/alert5 dest: /etc/init.d/alert5
regexp: '^#/etc/init.d/minifirewall start' regexp: '^#/etc/init.d/minifirewall start'
replace: '/etc/init.d/minifirewall start' replace: '/etc/init.d/minifirewall start'
when: minifirewall_autostart == "yes" when: minifirewall_autostart == "yes"

View file

@ -5,14 +5,12 @@
stat: stat:
path: "{{ mysql_custom_datadir }}" path: "{{ mysql_custom_datadir }}"
check_mode: no check_mode: no
register: mysql_custom_datadir_test register: mysql_custom_datadir_test
- name: "read the real datadir" - name: "read the real datadir"
command: readlink -f /var/lib/mysql command: readlink -f /var/lib/mysql
changed_when: False changed_when: False
check_mode: no check_mode: no
register: mysql_current_real_datadir_test register: mysql_current_real_datadir_test
tags: tags:
- mysql - mysql

View file

@ -4,7 +4,6 @@
stat: stat:
path: /etc/log2mail/config path: /etc/log2mail/config
check_mode: no check_mode: no
register: log2mail_config_dir register: log2mail_config_dir
tags: tags:
- mysql - mysql

View file

@ -24,7 +24,7 @@
- name: Enable default vhost - name: Enable default vhost
file: file:
src: /etc/nginx/sites-available/default src: /etc/nginx/sites-available/default
dest: /etc/nginx/sites-enabled/default dest: /etc/nginx/sites-enabled/default
state: link state: link
notify: reload nginx notify: reload nginx
tags: tags:

View file

@ -121,7 +121,6 @@
stat: stat:
path: /etc/munin/plugin-conf.d/munin-node path: /etc/munin/plugin-conf.d/munin-node
check_mode: no check_mode: no
register: stat_munin_node register: stat_munin_node
tags: tags:
- nginx - nginx