mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-24 10:31:56 +08:00
Fix up some more non idempotent things.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user