Merge ssh importing, better hostname set, deleted service_start and IOMMU for proxmox
This commit is contained in:
@@ -1,3 +1,26 @@
|
||||
---
|
||||
- name: Copy /etc/hosts
|
||||
template:
|
||||
src: ../templates/etc_hosts
|
||||
dest: /etc/hosts
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0664'
|
||||
|
||||
|
||||
- name: Set host name in /etc/hosts
|
||||
ansible.builtin.blockinfile:
|
||||
state: present
|
||||
insertafter: EOF
|
||||
path: /etc/hosts
|
||||
mode: '0664'
|
||||
owner: root
|
||||
group: root
|
||||
create: true
|
||||
block: |
|
||||
{{ ip }} {{ host }}
|
||||
|
||||
|
||||
- name: Set a hostname
|
||||
ansible.builtin.hostname:
|
||||
name: "{{ host }}"
|
||||
name: "{{ host }}"
|
||||
Reference in New Issue
Block a user