Skip to content
Snippets Groups Projects
Commit 0c52efa2 authored by jurgenhaas's avatar jurgenhaas
Browse files

Exclude localhost from initial provisioning

parent 7793ffc4
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,9 @@
sudo: no
tasks:
- name: "InitHost | Remove previous entries from known_hosts"
shell: "ssh-keygen -R {{ item }}"
known_hosts:
name="{{ item }}"
state="absent"
with_items:
- '{{ inithostip|default(static_ipv4) }}'
- '{{ host }}'
......@@ -71,7 +73,7 @@
- common
- name: "Upload keys"
hosts: "all"
hosts: "all:!localhost"
sudo: yes
roles:
- { role: common, when: ignore_these_tasks is defined }
......
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