Skip to content
Snippets Groups Projects
Commit 3b0d73ef authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

removing unnecessary changed

Former-commit-id: 07b5f784
parent 472c93dd
No related branches found
No related tags found
No related merge requests found
...@@ -14,3 +14,12 @@ ...@@ -14,3 +14,12 @@
- name: fetch hosts file - name: fetch hosts file
fetch: src=/tmp/etcHosts dest=files/etcHosts flat=yes fetch: src=/tmp/etcHosts dest=files/etcHosts flat=yes
- name: make sure our repo server is resolvable
lineinfile:
path: files/etcHosts
line: "{{ reposerverip }} {{ reposervername }}"
owner: root
group: root
become: True
when: {{ reposerverip }} is defined and {{ reposervername }} is defined
...@@ -8,6 +8,15 @@ ...@@ -8,6 +8,15 @@
check_mode: no check_mode: no
changed_when: False changed_when: False
- debug:
var: sysctl_hostname.stdout
when: not sysctl_hostname.stdout == inventory_hostname
- debug:
var: inventory_hostname
when: not sysctl_hostname.stdout == inventory_hostname
- name: set hostname by sysctl - name: set hostname by sysctl
shell: sysctl kernel.hostname="{{ inventory_hostname }}" shell: sysctl kernel.hostname="{{ inventory_hostname }}"
become: true become: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment