Fix up some more non idempotent things.

This commit is contained in:
Kevin Fenzi 2016-06-25 18:09:34 +00:00
parent 3b73ad90ff
commit 2d61e0754d
3 changed files with 3 additions and 2 deletions

View file

@ -75,7 +75,7 @@
# note - kinda should be a handler - but handlers need args
- name: restorecon
command: restorecon -R /root/.ssh
file: path=/root/.ssh setype=ssh_home_t recurse=yes
tags:
- config

View file

@ -4,6 +4,7 @@
local_action: shell nc -w 5 {{ inventory_hostname }} 22 < /dev/null
register: host_is_up
ignore_errors: true
changed_when: false
- name: clean out old known_hosts (name based entries)
local_action: known_hosts path={{item}} host={{inventory_hostname}} state=absent