Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Este repositório está arquivado. Você pode visualizar os arquivos e realizar clone, mas não poderá realizar push nem abrir issues e pull requests.

2 anos atrás
2 anos atrás
12345678910111213141516171819
  1. ---
  2. - name: hostname
  3. hostname:
  4. name: "{{inventory_hostname}}"
  5. when: not root_target_directory is defined
  6. - name: localhost ipv4 entry
  7. lineinfile:
  8. dest: "{{ root_target_directory | default('') }}/etc/hosts"
  9. regexp: '^127\.0\.0\.1'
  10. line: "127.0.0.1 localhost {{inventory_hostname}}{% if inventory_hostname != inventory_hostname_short %} {{inventory_hostname_short}}{% endif %}"
  11. - name: localhost ipv6 entry
  12. lineinfile:
  13. dest: "{{ root_target_directory | default('') }}/etc/hosts"
  14. regexp: '^::1'
  15. line: "::1 localhost ip6-localhost ip6-loopback {{inventory_hostname}}{% if inventory_hostname != inventory_hostname_short %} {{inventory_hostname_short}}{% endif %}"