Skip to content

Commit

Permalink
fix lints (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-rudnouski authored Aug 28, 2024
1 parent d70c50b commit a9ef7e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@ jenkins2_ssh_keys_private_keyname: 'id_rsa'
jenkins2_ssh_keys_size: 4096
jenkins2_ssh_keys_inv_slave_groupname: 'jenkins_ssh_slaves'

jenkins2_ssh_keys_slave_group: '{{ groups[jenkins2_ssh_keys_inv_slave_groupname]|default([""])}}'
jenkins2_ssh_keys_slave_group: '{{ groups[jenkins2_ssh_keys_inv_slave_groupname] | default([""]) }}'
jenkins2_ssh_keys_slave_hosts: '{%- set users = [] %}
{%- for host in jenkins2_ssh_keys_slave_group %}
{{- users.append(dict(host=host, users=hostvars[host]["jenkins_ssh_user"]|default([]))) }}
{{- users.append(dict(host=host, users=hostvars[host]["jenkins_ssh_user"] | default([]))) }}
{%- endfor %}
{{- users -}}'
jenkins2_ssh_keys_slave_ips: '{%- set ips = [] %}{%- for host in jenkins2_ssh_keys_slave_group %}
{{- ips.append(dict(host=host, ips=hostvars[host]["ansible_all_ipv4_addresses"]|default([]))) }}
{{- ips.append(dict(host=host, ips=hostvars[host]["ansible_all_ipv4_addresses"] | default([]))) }}
{%- endfor %}
{{- ips -}}'
jenkins2_ssh_keys_slave_group_exist: '{{ ((jenkins2_ssh_keys_slave_group)[0]|default("")) != ""}}'
jenkins2_ssh_keys_slave_group_exist: '{{ ((jenkins2_ssh_keys_slave_group)[0] | default("")) != "" }}'

# Plugin installation
jenkins2_updates_url: https://updates.jenkins.io
Expand Down

0 comments on commit a9ef7e1

Please sign in to comment.