Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Repozitorijs ir arhivēts. Tam var aplūkot failus un to var klonēt, bet nevar iesūtīt jaunas izmaiņas, kā arī atvērt jaunas problēmas/izmaiņu pieprasījumus.
|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- ---
-
- - setup:
- gather_subset: '!all'
- when: not root_target_directory is defined
-
- - apt:
- pkg: dbus
- state: present
- when:
- - not root_target_directory is defined
- - ansible_os_family == "Debian"
-
- - name: hostname
- hostname:
- name: "{{inventory_hostname}}"
- when: not root_target_directory is defined
-
- - name: etc directory
- file:
- path: "{{ root_target_directory }}/etc"
- state: directory
- when: root_target_directory is defined
-
- - name: hostname file
- copy:
- content: "{{inventory_hostname}}"
- dest: "{{ root_target_directory }}/etc/hostname"
- when: root_target_directory is defined
-
- - name: hosts file
- file:
- path: "{{ root_target_directory }}/etc/hosts"
- state: touch
- when: 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}}"
-
- - name: localhost ipv6 entry
- lineinfile:
- dest: "{{ root_target_directory | default('') }}/etc/hosts"
- regexp: '^::1'
- line: "::1 localhost ip6-localhost ip6-loopback {{inventory_hostname}}"
|