Skip to content
Snippets Groups Projects
Commit e4cd88e1 authored by Lars Beckers's avatar Lars Beckers
Browse files

fix hosts template

parent eaed2952
Branches
No related tags found
No related merge requests found
...@@ -6,15 +6,15 @@ ff02::1 ip6-allnodes ...@@ -6,15 +6,15 @@ ff02::1 ip6-allnodes
ff02::2 ip6-allrouters ff02::2 ip6-allrouters
ff02::3 ip6-allhosts ff02::3 ip6-allhosts
{%- for host in hosts_alternates %} {% for host in hosts_alternates %}
{{ host }} {{ ansible_host }} {{ inventory_hostname }} {{ host }} {{ ansible_host }} {{ inventory_hostname }}
{% else %} {% else %}
{{ ansible_default_ipv4.address }} {{ ansible_host }} {{ inventory_hostname }} {{ ansible_default_ipv4.address }} {{ ansible_host }} {{ inventory_hostname }}
{%- if address in ansible_default_ipv6 %} {% if 'address' in ansible_default_ipv6 %}
{{ ansible_default_ipv6.address }} {{ ansible_host }} {{ inventory_hostname }} {{ ansible_default_ipv6.address }} {{ ansible_host }} {{ inventory_hostname }}
{% endif -%} {% endif %}
{% endfor -%} {% endfor %}
{%- for host in hosts_additionals %} {% for host in hosts_additionals %}
{{ host.address }} {{ host.names|join(' ') }} {{ host.address }} {{ host.names|join(' ') }}
{% endfor -%} {% endfor %}
...@@ -59,28 +59,28 @@ ...@@ -59,28 +59,28 @@
- packages - packages
- shell - shell
- name: ensure we have an up-to-date version of grml-zsh-config #- name: ensure we have an up-to-date version of grml-zsh-config
  • Was ist der Grund für diese Änderung? Zugegebenermaßen sieht "--exlcude" kaputt aus und einfach so etwas aus dem Internet zu laden (ohne Checksumme!) ist auch unschön, aber so ist unsere die zshrc die Debian-Default mit doch sehr wenig nützlichen Einstellungen.

  • Please register or sign in to reply
get_url: # get_url:
url: https://www.archlinux.org/packages/extra/any/grml-zsh-config/download/ # url: https://www.archlinux.org/packages/extra/any/grml-zsh-config/download/
dest: "{{ role_path }}/files/" # dest: "{{ role_path }}/files/"
delegate_to: localhost # delegate_to: localhost
run_once: True # run_once: True
register: grml_zsh # register: grml_zsh
tags: # tags:
- config # - config
- shell # - shell
#
- name: ensure grml-zsh-config is available #- name: ensure grml-zsh-config is available
unarchive: # unarchive:
src: "{{ grml_zsh.dest }}" # src: "{{ grml_zsh.dest }}"
dest: / # dest: /
extra_opts: "--exlcude=.[A-Z]*" # extra_opts: "--exlcude=.[A-Z]*"
when: # when:
- grml_zsh.changed # - grml_zsh.changed
- not grml_zsh.failed # - not grml_zsh.failed
tags: # tags:
- config # - config
- shell # - shell
- name: ensure root uses the global zshrc - name: ensure root uses the global zshrc
copy: copy:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment