Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
- ---
-
- - name: hostname
- hostname:
- name: "{{inventory_hostname}}"
- when: not root_target_directory is defined
-
-
- - name: localhost ipv4 entry
- lineinfile:
- dest: "{{ root_target_directory | default('') }}/etc/hosts"
- regexp: '^127\.0\.0\.1'
- line: "127.0.0.1 localhost {{inventory_hostname}} {{inventory_hostname_short}}"
-
- - name: localhost ipv6 entry
- lineinfile:
- dest: "{{ root_target_directory | default('') }}/etc/hosts"
- regexp: '^::1'
- line: "::1 localhost ip6-localhost ip6-loopback {{inventory_hostname}} {{inventory_hostname_short}}"
|