Merge ssh importing, better hostname set, deleted service_start and IOMMU for proxmox

This commit is contained in:
git
2024-01-24 12:31:33 +01:00
parent a5a87518a4
commit 498fbdcfbc
21 changed files with 26 additions and 217 deletions

View File

@@ -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 }}"

View File

@@ -6,7 +6,7 @@
- sudoer_no_passwd.yml
- hostname_set.yml
- git.yml
- create_warezjoe.yml
- create_user.yml
# - script_import.yml
#- name: Set Pernament IP

View File

@@ -1,14 +0,0 @@
---
- name: Clone a github repository
git:
repo: https://gitea.matous.vondrejka.cz/Warezjoe/.bin.git
dest: ~/.bin/
clone: true
update: true
- name: Run Aliaser
ansible.builtin.blockinfile:
path: ~/.bashrc
block: |
source ~/.bin/Aliaser

View File

@@ -1,18 +1 @@
---
- name: Delete all old ethernet connections for desktop exept below configured
community.general.nmcli:
conn_name: '*'
state: absent
when: host == 'desktop'
- name: Add an Ethernet connection with static IP configuration for desktop
community.general.nmcli:
conn_name: deksktop-local
ifname: enp7s0
type: ethernet
ip4: 192.168.5.99/24
gw4: 192.168.5.1
dns4: 8.8.8.8
state: present
autoconnect: true
when: host == 'desktop'