Fix truthy value should be true or false warnings

Running yamllint, this exposed the follow warnings. Lets clean them up
before we switch to molecule.

Change-Id: I7eec334124e8c5eecb5a0b5670f0e512ef50a607
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-08-19 12:33:32 -04:00
parent 0b7d16473e
commit f1cd85520b
7 changed files with 48 additions and 48 deletions

View File

@ -150,32 +150,32 @@ zuul_file_zuul_web_service_config_manage: true
zuul_file_zuul_web_service_config_group: root zuul_file_zuul_web_service_config_group: root
zuul_file_zuul_web_service_config_owner: root zuul_file_zuul_web_service_config_owner: root
zuul_service_zuul_executor_daemon_reload: yes zuul_service_zuul_executor_daemon_reload: true
zuul_service_zuul_executor_enabled: yes zuul_service_zuul_executor_enabled: true
zuul_service_zuul_executor_manage: true zuul_service_zuul_executor_manage: true
zuul_service_zuul_executor_name: zuul-executor.service zuul_service_zuul_executor_name: zuul-executor.service
zuul_service_zuul_executor_state: started zuul_service_zuul_executor_state: started
zuul_service_zuul_fingergw_daemon_reload: yes zuul_service_zuul_fingergw_daemon_reload: true
zuul_service_zuul_fingergw_enabled: yes zuul_service_zuul_fingergw_enabled: true
zuul_service_zuul_fingergw_manage: true zuul_service_zuul_fingergw_manage: true
zuul_service_zuul_fingergw_name: zuul-fingergw.service zuul_service_zuul_fingergw_name: zuul-fingergw.service
zuul_service_zuul_fingergw_state: started zuul_service_zuul_fingergw_state: started
zuul_service_zuul_merger_daemon_reload: yes zuul_service_zuul_merger_daemon_reload: true
zuul_service_zuul_merger_enabled: yes zuul_service_zuul_merger_enabled: true
zuul_service_zuul_merger_manage: true zuul_service_zuul_merger_manage: true
zuul_service_zuul_merger_name: zuul-merger.service zuul_service_zuul_merger_name: zuul-merger.service
zuul_service_zuul_merger_state: started zuul_service_zuul_merger_state: started
zuul_service_zuul_scheduler_daemon_reload: yes zuul_service_zuul_scheduler_daemon_reload: true
zuul_service_zuul_scheduler_enabled: yes zuul_service_zuul_scheduler_enabled: true
zuul_service_zuul_scheduler_manage: true zuul_service_zuul_scheduler_manage: true
zuul_service_zuul_scheduler_name: zuul-scheduler.service zuul_service_zuul_scheduler_name: zuul-scheduler.service
zuul_service_zuul_scheduler_state: started zuul_service_zuul_scheduler_state: started
zuul_service_zuul_web_daemon_reload: yes zuul_service_zuul_web_daemon_reload: true
zuul_service_zuul_web_enabled: yes zuul_service_zuul_web_enabled: true
zuul_service_zuul_web_manage: true zuul_service_zuul_web_manage: true
zuul_service_zuul_web_name: zuul-web.service zuul_service_zuul_web_name: zuul-web.service
zuul_service_zuul_web_state: started zuul_service_zuul_web_state: started

View File

@ -13,7 +13,7 @@
# under the License. # under the License.
--- ---
- name: Reload zuul-scheduler - name: Reload zuul-scheduler
become: yes become: true
service: service:
name: zuul-scheduler name: zuul-scheduler
state: reloaded state: reloaded

View File

@ -13,7 +13,7 @@
# under the License. # under the License.
--- ---
- name: Create required directories. - name: Create required directories.
become: yes become: true
file: file:
group: "{{ zuul_user_group }}" group: "{{ zuul_user_group }}"
owner: "{{ zuul_user_name }}" owner: "{{ zuul_user_name }}"
@ -25,7 +25,7 @@
- /var/log/zuul - /var/log/zuul
- name: Install gearman logging file. - name: Install gearman logging file.
become: yes become: true
template: template:
dest: "{{ zuul_file_gearman_logging_conf_dest }}" dest: "{{ zuul_file_gearman_logging_conf_dest }}"
group: "{{ zuul_file_gearman_logging_conf_group }}" group: "{{ zuul_file_gearman_logging_conf_group }}"
@ -36,7 +36,7 @@
notify: Reload zuul-scheduler notify: Reload zuul-scheduler
- name: Install executor logging file. - name: Install executor logging file.
become: yes become: true
template: template:
dest: "{{ zuul_file_executor_logging_conf_dest }}" dest: "{{ zuul_file_executor_logging_conf_dest }}"
group: "{{ zuul_file_executor_logging_conf_group }}" group: "{{ zuul_file_executor_logging_conf_group }}"
@ -46,7 +46,7 @@
register: zuul_file_executor_logging_conf register: zuul_file_executor_logging_conf
- name: Install fingergw logging file. - name: Install fingergw logging file.
become: yes become: true
template: template:
dest: "{{ zuul_file_fingergw_logging_conf_dest }}" dest: "{{ zuul_file_fingergw_logging_conf_dest }}"
group: "{{ zuul_file_fingergw_logging_conf_group }}" group: "{{ zuul_file_fingergw_logging_conf_group }}"
@ -56,7 +56,7 @@
register: zuul_file_fingergw_logging_conf register: zuul_file_fingergw_logging_conf
- name: Install merger logging file. - name: Install merger logging file.
become: yes become: true
template: template:
dest: "{{ zuul_file_merger_logging_conf_dest }}" dest: "{{ zuul_file_merger_logging_conf_dest }}"
group: "{{ zuul_file_merger_logging_conf_group }}" group: "{{ zuul_file_merger_logging_conf_group }}"
@ -66,7 +66,7 @@
register: zuul_file_merger_logging_conf register: zuul_file_merger_logging_conf
- name: Install scheduler logging file. - name: Install scheduler logging file.
become: yes become: true
template: template:
dest: "{{ zuul_file_scheduler_logging_conf_dest }}" dest: "{{ zuul_file_scheduler_logging_conf_dest }}"
group: "{{ zuul_file_scheduler_logging_conf_group }}" group: "{{ zuul_file_scheduler_logging_conf_group }}"
@ -77,7 +77,7 @@
notify: Reload zuul-scheduler notify: Reload zuul-scheduler
- name: Install zuul gearman ssl ca configuration. - name: Install zuul gearman ssl ca configuration.
become: yes become: true
template: template:
dest: "{{ zuul_file_gearman_ssl_ca_dest }}" dest: "{{ zuul_file_gearman_ssl_ca_dest }}"
group: "{{ zuul_file_gearman_ssl_ca_group }}" group: "{{ zuul_file_gearman_ssl_ca_group }}"
@ -87,7 +87,7 @@
register: zuul_file_gearman_ssl_ca register: zuul_file_gearman_ssl_ca
- name: Install zuul gearman ssl cert configuration. - name: Install zuul gearman ssl cert configuration.
become: yes become: true
template: template:
dest: "{{ zuul_file_gearman_ssl_cert_dest }}" dest: "{{ zuul_file_gearman_ssl_cert_dest }}"
group: "{{ zuul_file_gearman_ssl_cert_group }}" group: "{{ zuul_file_gearman_ssl_cert_group }}"
@ -97,7 +97,7 @@
register: zuul_file_gearman_ssl_cert register: zuul_file_gearman_ssl_cert
- name: Install zuul gearman ssl key configuration. - name: Install zuul gearman ssl key configuration.
become: yes become: true
template: template:
dest: "{{ zuul_file_gearman_ssl_key_dest }}" dest: "{{ zuul_file_gearman_ssl_key_dest }}"
group: "{{ zuul_file_gearman_ssl_key_group }}" group: "{{ zuul_file_gearman_ssl_key_group }}"
@ -107,7 +107,7 @@
register: zuul_file_gearman_ssl_key register: zuul_file_gearman_ssl_key
- name: Install web logging file. - name: Install web logging file.
become: yes become: true
template: template:
dest: "{{ zuul_file_web_logging_conf_dest }}" dest: "{{ zuul_file_web_logging_conf_dest }}"
group: "{{ zuul_file_web_logging_conf_group }}" group: "{{ zuul_file_web_logging_conf_group }}"
@ -117,7 +117,7 @@
register: zuul_file_web_logging_conf register: zuul_file_web_logging_conf
- name: Install zuul main.yaml configuration. - name: Install zuul main.yaml configuration.
become: yes become: true
template: template:
dest: "{{ zuul_file_main_yaml_dest }}" dest: "{{ zuul_file_main_yaml_dest }}"
group: "{{ zuul_file_main_yaml_group }}" group: "{{ zuul_file_main_yaml_group }}"
@ -129,7 +129,7 @@
- Reload zuul-scheduler - Reload zuul-scheduler
- name: Install zuul configuration. - name: Install zuul configuration.
become: yes become: true
template: template:
dest: "{{ zuul_file_zuul_conf_dest }}" dest: "{{ zuul_file_zuul_conf_dest }}"
group: "{{ zuul_file_zuul_conf_group }}" group: "{{ zuul_file_zuul_conf_group }}"

View File

@ -18,7 +18,7 @@
when: zuul_build_depends is not defined when: zuul_build_depends is not defined
- name: Ensure build dependencies are installed. - name: Ensure build dependencies are installed.
become: yes become: true
package: package:
name: "{{ zuul_build_depends }}" name: "{{ zuul_build_depends }}"
state: installed state: installed

View File

@ -13,7 +13,7 @@
# under the License. # under the License.
--- ---
- name: Install zuul using pip. - name: Install zuul using pip.
become: yes become: true
pip: pip:
executable: "{{ zuul_pip_executable|default(omit) }}" executable: "{{ zuul_pip_executable|default(omit) }}"
editable : "{{ zuul_pip_editable|default(omit) }}" editable : "{{ zuul_pip_editable|default(omit) }}"

View File

@ -13,14 +13,14 @@
# under the License. # under the License.
--- ---
- name: Create group account. - name: Create group account.
become: yes become: true
group: group:
name: "{{ zuul_user_group }}" name: "{{ zuul_user_group }}"
- name: Create user account. - name: Create user account.
become: yes become: true
user: user:
createhome: yes createhome: true
home: "{{ zuul_user_home }}" home: "{{ zuul_user_home }}"
group: "{{ zuul_user_group }}" group: "{{ zuul_user_group }}"
name: "{{ zuul_user_name }}" name: "{{ zuul_user_name }}"

View File

@ -163,7 +163,7 @@
when: zuul_file_zuul_web_service_config_src is not defined when: zuul_file_zuul_web_service_config_src is not defined
- name: Install zuul-executor service into place. - name: Install zuul-executor service into place.
become: yes become: true
template: template:
dest: "{{ zuul_file_zuul_executor_service_dest }}" dest: "{{ zuul_file_zuul_executor_service_dest }}"
group: "{{ zuul_file_zuul_executor_service_group }}" group: "{{ zuul_file_zuul_executor_service_group }}"
@ -174,7 +174,7 @@
when: zuul_file_zuul_executor_service_manage when: zuul_file_zuul_executor_service_manage
- name: Create zuul-executor service config directory. - name: Create zuul-executor service config directory.
become: yes become: true
file: file:
group: "{{ zuul_file_zuul_executor_service_config_group }}" group: "{{ zuul_file_zuul_executor_service_config_group }}"
owner: "{{ zuul_file_zuul_executor_service_config_owner }}" owner: "{{ zuul_file_zuul_executor_service_config_owner }}"
@ -183,7 +183,7 @@
when: zuul_file_zuul_executor_service_config_manage when: zuul_file_zuul_executor_service_config_manage
- name: Install zuul-executor service config into place. - name: Install zuul-executor service config into place.
become: yes become: true
template: template:
dest: "{{ zuul_file_zuul_executor_service_config_dest }}" dest: "{{ zuul_file_zuul_executor_service_config_dest }}"
group: "{{ zuul_file_zuul_executor_service_config_group }}" group: "{{ zuul_file_zuul_executor_service_config_group }}"
@ -194,7 +194,7 @@
when: zuul_file_zuul_executor_service_config_manage when: zuul_file_zuul_executor_service_config_manage
- name: Install zuul-fingergw service into place. - name: Install zuul-fingergw service into place.
become: yes become: true
template: template:
dest: "{{ zuul_file_zuul_fingergw_service_dest }}" dest: "{{ zuul_file_zuul_fingergw_service_dest }}"
group: "{{ zuul_file_zuul_fingergw_service_group }}" group: "{{ zuul_file_zuul_fingergw_service_group }}"
@ -205,7 +205,7 @@
when: zuul_file_zuul_fingergw_service_manage when: zuul_file_zuul_fingergw_service_manage
- name: Create zuul-fingergw service config directory. - name: Create zuul-fingergw service config directory.
become: yes become: true
file: file:
group: "{{ zuul_file_zuul_fingergw_service_config_group }}" group: "{{ zuul_file_zuul_fingergw_service_config_group }}"
owner: "{{ zuul_file_zuul_fingergw_service_config_owner }}" owner: "{{ zuul_file_zuul_fingergw_service_config_owner }}"
@ -214,7 +214,7 @@
when: zuul_file_zuul_fingergw_service_config_manage when: zuul_file_zuul_fingergw_service_config_manage
- name: Install zuul-fingergw service config into place. - name: Install zuul-fingergw service config into place.
become: yes become: true
template: template:
dest: "{{ zuul_file_zuul_fingergw_service_config_dest }}" dest: "{{ zuul_file_zuul_fingergw_service_config_dest }}"
group: "{{ zuul_file_zuul_fingergw_service_config_group }}" group: "{{ zuul_file_zuul_fingergw_service_config_group }}"
@ -225,7 +225,7 @@
when: zuul_file_zuul_fingergw_service_config_manage when: zuul_file_zuul_fingergw_service_config_manage
- name: Install zuul-merger service into place. - name: Install zuul-merger service into place.
become: yes become: true
template: template:
dest: "{{ zuul_file_zuul_merger_service_dest }}" dest: "{{ zuul_file_zuul_merger_service_dest }}"
group: "{{ zuul_file_zuul_merger_service_group }}" group: "{{ zuul_file_zuul_merger_service_group }}"
@ -236,7 +236,7 @@
when: zuul_file_zuul_merger_service_manage when: zuul_file_zuul_merger_service_manage
- name: Create zuul-merger service config directory. - name: Create zuul-merger service config directory.
become: yes become: true
file: file:
group: "{{ zuul_file_zuul_merger_service_config_group }}" group: "{{ zuul_file_zuul_merger_service_config_group }}"
owner: "{{ zuul_file_zuul_merger_service_config_owner }}" owner: "{{ zuul_file_zuul_merger_service_config_owner }}"
@ -245,7 +245,7 @@
when: zuul_file_zuul_merger_service_config_manage when: zuul_file_zuul_merger_service_config_manage
- name: Install zuul-merger service config into place. - name: Install zuul-merger service config into place.
become: yes become: true
template: template:
dest: "{{ zuul_file_zuul_merger_service_config_dest }}" dest: "{{ zuul_file_zuul_merger_service_config_dest }}"
group: "{{ zuul_file_zuul_merger_service_config_group }}" group: "{{ zuul_file_zuul_merger_service_config_group }}"
@ -256,7 +256,7 @@
when: zuul_file_zuul_merger_service_config_manage when: zuul_file_zuul_merger_service_config_manage
- name: Install zuul-scheduler service into place. - name: Install zuul-scheduler service into place.
become: yes become: true
template: template:
dest: "{{ zuul_file_zuul_scheduler_service_dest }}" dest: "{{ zuul_file_zuul_scheduler_service_dest }}"
group: "{{ zuul_file_zuul_scheduler_service_group }}" group: "{{ zuul_file_zuul_scheduler_service_group }}"
@ -267,7 +267,7 @@
when: zuul_file_zuul_scheduler_service_manage when: zuul_file_zuul_scheduler_service_manage
- name: Create zuul-scheduler service config directory. - name: Create zuul-scheduler service config directory.
become: yes become: true
file: file:
group: "{{ zuul_file_zuul_scheduler_service_config_group }}" group: "{{ zuul_file_zuul_scheduler_service_config_group }}"
owner: "{{ zuul_file_zuul_scheduler_service_config_owner }}" owner: "{{ zuul_file_zuul_scheduler_service_config_owner }}"
@ -276,7 +276,7 @@
when: zuul_file_zuul_scheduler_service_config_manage when: zuul_file_zuul_scheduler_service_config_manage
- name: Install zuul-scheduler service config into place. - name: Install zuul-scheduler service config into place.
become: yes become: true
template: template:
dest: "{{ zuul_file_zuul_scheduler_service_config_dest }}" dest: "{{ zuul_file_zuul_scheduler_service_config_dest }}"
group: "{{ zuul_file_zuul_scheduler_service_config_group }}" group: "{{ zuul_file_zuul_scheduler_service_config_group }}"
@ -287,7 +287,7 @@
when: zuul_file_zuul_scheduler_service_config_manage when: zuul_file_zuul_scheduler_service_config_manage
- name: Install zuul-web service into place. - name: Install zuul-web service into place.
become: yes become: true
template: template:
dest: "{{ zuul_file_zuul_web_service_dest }}" dest: "{{ zuul_file_zuul_web_service_dest }}"
group: "{{ zuul_file_zuul_web_service_group }}" group: "{{ zuul_file_zuul_web_service_group }}"
@ -298,7 +298,7 @@
when: zuul_file_zuul_web_service_manage when: zuul_file_zuul_web_service_manage
- name: Create zuul-web service config directory. - name: Create zuul-web service config directory.
become: yes become: true
file: file:
group: "{{ zuul_file_zuul_web_service_config_group }}" group: "{{ zuul_file_zuul_web_service_config_group }}"
owner: "{{ zuul_file_zuul_web_service_config_owner }}" owner: "{{ zuul_file_zuul_web_service_config_owner }}"
@ -307,7 +307,7 @@
when: zuul_file_zuul_web_service_config_manage when: zuul_file_zuul_web_service_config_manage
- name: Install zuul-web service config into place. - name: Install zuul-web service config into place.
become: yes become: true
template: template:
dest: "{{ zuul_file_zuul_web_service_config_dest }}" dest: "{{ zuul_file_zuul_web_service_config_dest }}"
group: "{{ zuul_file_zuul_web_service_config_group }}" group: "{{ zuul_file_zuul_web_service_config_group }}"
@ -318,7 +318,7 @@
when: zuul_file_zuul_web_service_config_manage when: zuul_file_zuul_web_service_config_manage
- name: Enable zuul-executor service. - name: Enable zuul-executor service.
become: yes become: true
systemd: systemd:
daemon_reload: "{{ zuul_service_zuul_executor_daemon_reload }}" daemon_reload: "{{ zuul_service_zuul_executor_daemon_reload }}"
enabled: "{{ zuul_service_zuul_executor_enabled }}" enabled: "{{ zuul_service_zuul_executor_enabled }}"
@ -328,7 +328,7 @@
when: zuul_service_zuul_executor_manage when: zuul_service_zuul_executor_manage
- name: Enable zuul-fingergw service. - name: Enable zuul-fingergw service.
become: yes become: true
systemd: systemd:
daemon_reload: "{{ zuul_service_zuul_fingergw_daemon_reload }}" daemon_reload: "{{ zuul_service_zuul_fingergw_daemon_reload }}"
enabled: "{{ zuul_service_zuul_fingergw_enabled }}" enabled: "{{ zuul_service_zuul_fingergw_enabled }}"
@ -338,7 +338,7 @@
when: zuul_service_zuul_fingergw_manage when: zuul_service_zuul_fingergw_manage
- name: Enable zuul-merger service. - name: Enable zuul-merger service.
become: yes become: true
systemd: systemd:
daemon_reload: "{{ zuul_service_zuul_merger_daemon_reload }}" daemon_reload: "{{ zuul_service_zuul_merger_daemon_reload }}"
enabled: "{{ zuul_service_zuul_merger_enabled }}" enabled: "{{ zuul_service_zuul_merger_enabled }}"
@ -348,7 +348,7 @@
when: zuul_service_zuul_merger_manage when: zuul_service_zuul_merger_manage
- name: Enable zuul-scheduler service. - name: Enable zuul-scheduler service.
become: yes become: true
systemd: systemd:
daemon_reload: "{{ zuul_service_zuul_scheduler_daemon_reload }}" daemon_reload: "{{ zuul_service_zuul_scheduler_daemon_reload }}"
enabled: "{{ zuul_service_zuul_scheduler_enabled }}" enabled: "{{ zuul_service_zuul_scheduler_enabled }}"
@ -358,7 +358,7 @@
when: zuul_service_zuul_scheduler_manage when: zuul_service_zuul_scheduler_manage
- name: Enable zuul-web service. - name: Enable zuul-web service.
become: yes become: true
systemd: systemd:
daemon_reload: "{{ zuul_service_zuul_web_daemon_reload }}" daemon_reload: "{{ zuul_service_zuul_web_daemon_reload }}"
enabled: "{{ zuul_service_zuul_web_enabled }}" enabled: "{{ zuul_service_zuul_web_enabled }}"