[Cleanup] amazon-ec2, apache, bind, evolinux-todo, evomaintenance
Don't compare with empty string Name all tasks Variables should have space before and after their name
This commit is contained in:
parent
0825d88552
commit
26eec48954
|
@ -14,7 +14,7 @@
|
|||
# The last character "\u000A" is a line feed (LF), it's better to keep it
|
||||
content: "{{ apache_serverstatus_suffix }}\u000A"
|
||||
force: yes
|
||||
when: apache_serverstatus_suffix != ""
|
||||
when: apache_serverstatus_suffix
|
||||
|
||||
- name: generate random string for server-status suffix
|
||||
shell: "apg -a 1 -M N -n 1 > {{ apache_serverstatus_suffix_file }}"
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
|
||||
- debug:
|
||||
var: chrootbind_run.stdout_lines
|
||||
when: bind_chroot_set and chrootbind_run.stdout != ""
|
||||
when: bind_chroot_set and chrootbind_run.stdout
|
||||
|
||||
- name: Modify OPTIONS in /etc/default/bind9 for chroot
|
||||
replace:
|
||||
|
|
|
@ -10,4 +10,4 @@
|
|||
- name: "Content of /etc/evolinux/todo.txt"
|
||||
debug:
|
||||
var: evolinux_todo.stdout_lines
|
||||
when: evolinux_todo.stdout != ""
|
||||
when: evolinux_todo.stdout
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
---
|
||||
|
||||
- set_fact:
|
||||
- name: "Choose if minifirewall will need to be restarted"
|
||||
set_fact:
|
||||
minifirewall_restart_handler_name: "{{ minifirewall_restart_if_needed | ternary('restart minifirewall', 'restart minifirewall (noop)') }}"
|
||||
|
||||
- assert:
|
||||
- name: "Check that API variables are set"
|
||||
assert:
|
||||
that:
|
||||
- evomaintenance_api_endpoint is not none
|
||||
- evomaintenance_api_key is not none
|
||||
|
|
Loading…
Reference in a new issue