Skip to content

Commit

Permalink
* Fixing #1 - default value for the hosts entry should be a string.
Browse files Browse the repository at this point in the history
  • Loading branch information
timorunge committed Aug 9, 2018
1 parent 1656dfc commit 5351f4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tasks/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
lineinfile:
dest: /etc/hosts
group: root
line: "{{ freeipa_server_ip | default(127.0.0.1) }} {{ freeipa_server_fqdn | default(ansible_fqdn) }}"
line: "{{ freeipa_server_ip | default('127.0.0.1') }} {{ freeipa_server_fqdn | default(ansible_fqdn) }}"
mode: 0644
owner: root
when: freeipa_server_manage_host
6 changes: 3 additions & 3 deletions tests/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
gather_facts: true

vars:
freeipa_server_manage_host: false
freeipa_server_manage_host: true
freeipa_server_admin_password: Passw0rd
freeipa_server_domain: example.com
freeipa_server_ds_password: Passw0rd
freeipa_server_fqdn: "{{ ansible_fqdn }}"
freeipa_server_ip: "{{ ansible_all_ipv4_addresses }}"
freeipa_server_ip: "{{ ansible_default_ipv4.address }}"
freeipa_server_realm: EXAMPLE.COM
freeipa_server_install_options:
- "--realm={{ freeipa_server_realm }}"
Expand All @@ -20,7 +20,7 @@
- "--admin-password {{ freeipa_server_admin_password }}"
- '--mkhomedir'
- "--hostname={{ freeipa_server_fqdn | default(ansible_fqdn) }}"
- "--ip-address={{ freeipa_server_ip | join(' --ip-address=') }}"
- "--ip-address={{ freeipa_server_ip }}"
- '--no-host-dns'
- '--no-ntp'
- '--idstart=5000'
Expand Down

0 comments on commit 5351f4d

Please sign in to comment.