Fix up some more non idempotent things.
This commit is contained in:
parent
3b73ad90ff
commit
2d61e0754d
3 changed files with 3 additions and 2 deletions
|
@ -23,7 +23,7 @@
|
|||
pre_tasks:
|
||||
- include: "{{ tasks }}/cloud_setup_basic.yml"
|
||||
- name: set hostname (required by some services, at least postfix need it)
|
||||
shell: "hostname {{inventory_hostname}}"
|
||||
hostname: name="{{inventory_hostname}"
|
||||
|
||||
tasks:
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue