summaryrefslogtreecommitdiff
path: root/ansible/roles/proxmox_vm/tasks
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-07-14 11:54:51 +0300
committerheqnx <root@heqnx.com>2025-07-14 11:54:51 +0300
commitb1ca188b8a16a49b79cd18ae39261fe9c666edf1 (patch)
tree2c1ec57694b79332c3017bf73b47521632a9602b /ansible/roles/proxmox_vm/tasks
parent21de19d2573b802d93cd0a9af739ca2937e28b66 (diff)
downloadansible-active-directory-range-b1ca188b8a16a49b79cd18ae39261fe9c666edf1.tar.gz
ansible-active-directory-range-b1ca188b8a16a49b79cd18ae39261fe9c666edf1.zip
working iis + mssql setup
Diffstat (limited to 'ansible/roles/proxmox_vm/tasks')
-rw-r--r--ansible/roles/proxmox_vm/tasks/set_network.yaml16
1 files changed, 8 insertions, 8 deletions
diff --git a/ansible/roles/proxmox_vm/tasks/set_network.yaml b/ansible/roles/proxmox_vm/tasks/set_network.yaml
index c75aa0f..da809d5 100644
--- a/ansible/roles/proxmox_vm/tasks/set_network.yaml
+++ b/ansible/roles/proxmox_vm/tasks/set_network.yaml
@@ -1,4 +1,4 @@
-- name: "{{ fqdn }} : set up static ip address on windows"
+- name: "{{ fqdn }} : (windows) set up static ip address on"
win_shell: |
Start-Transcript -Path C:\set_domain_network_log.txt -Append
Get-NetIpAddress -InterfaceAlias 'Ethernet' | Remove-NetIPAddress -Confirm:$false
@@ -18,36 +18,36 @@
ansible_winrm_transport: basic
ansible_winrm_server_cert_validation: ignore
-- name: "{{ fqdn }} : configure network for linux"
+- name: "{{ fqdn }} : (linux) configure network"
block:
- - name: "{{ fqdn }} : get default interface"
+ - name: "{{ fqdn }} : (linux) get default interface"
ansible.builtin.shell: ip route get 8.8.8.8 | sed -n 's/.*dev \([^\ ]*\).*/\1/p'
register: interface_result
- - name: "{{ fqdn }} : set default interface variable"
+ - name: "{{ fqdn }} : (linux) set default interface variable"
ansible.builtin.set_fact:
linux_interface_name: "{{ interface_result.stdout }}"
netplan_ip_address: "{{ ip }}"
- - name: "{{ fqdn }} : find netplan configs in /etc/netplan"
+ - name: "{{ fqdn }} : (linux) find netplan configs in /etc/netplan"
ansible.builtin.find:
paths: /etc/netplan
recurse: yes
register: yaml_configs
- - name: "{{ fqdn }} : remove all netplan configs in /etc/netplan"
+ - name: "{{ fqdn }} : (linux) remove all netplan configs in /etc/netplan"
ansible.builtin.file:
path: "{{ item.path }}"
state: absent
loop: "{{ yaml_configs.files }}"
- - name: "{{ fqdn }} : set netplan static ip address"
+ - name: "{{ fqdn }} : (linux) set netplan static ip address"
ansible.builtin.template:
src: static_ip_netplan.yaml.j2
dest: /etc/netplan/01-netcfg.yaml
mode: '0644'
- - name: "{{ fqdn }} : apply netplan configuration"
+ - name: "{{ fqdn }} : (linux) apply netplan configuration"
ansible.builtin.command: netplan apply
async: 15
poll: 0