Skip to content
Snippets Groups Projects
Commit 0cf11253 authored by Kamil Andoniadis's avatar Kamil Andoniadis
Browse files

revert last commit

parent 0ca8496c
No related branches found
No related tags found
No related merge requests found
......@@ -220,47 +220,3 @@
dest: 'C:\Users\{{ ansible_user }}\.ssh\authorized_keys'
content: '{{ lookup("file", kypo_global_ssh_public_mgmt_key) }}'
- name:
hosts: all
gather_facts: no
tasks:
- set_fact:
hostname: '{{ ansible_hostname | regex_replace("^" ~ kypo_global_sandbox_name ~ "-", "") }}'
- name:
hosts:
- management
- ssh_nodes
strategy: free
gather_facts: yes
become: yes
tasks:
- name:
hostname:
name: '{{ hostname }}'
- name:
replace:
path: /etc/hosts
regexp: '{{ kypo_global_sandbox_name }}-'
replace: ''
- name:
hosts:
- winrm_nodes
strategy: free
gather_facts: yes
become: yes
tasks:
- name:
win_hostname:
name: '{{ hostname }}'
register: win_hostname_return_value
- name:
win_reboot:
when: win_hostname_return_value.reboot_required
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment