move some tasks around - need to find out if the sshd config will work at all for f19 :)

This commit is contained in:
Seth Vidal 2013-05-15 20:57:44 +00:00
parent a01b7b0350
commit 50345409e0

View file

@ -1,4 +1,30 @@
---
- name: sshd_config
action: copy src=$sshd_config dest=/etc/ssh/sshd_config mode=600
first_available_file:
- $sshd_config
- $files/ssh/sshd_config.${ansible_fqdn}
- $files/ssh/sshd_config.${host_group}
- $files/ssh/sshd_config.${dist_tag}
notify:
- restart sshd
tags:
- sshd_config
- config
- sshd
- name: set root passwd
action: user name=root password=$rootpw state=present
tags:
- rootpw
- name: add ansible root key
action: authorized_key user=root key='$FILE(${files}/common/ansible-pub-key)'
tags:
- config
- name: put repos on system
action: copy src=$files/common/$item dest=/etc/yum.repos.d/$item
with_items:
@ -33,6 +59,7 @@
- firstboot-tui
- bluez-utils
- sendmail
only_if: '$is_rhel'
tags:
- packages
@ -42,20 +69,11 @@
- yum-updatesd
- gpm
- rhnsd
only_if: '$is_rhel'
tags:
- services
- config
- name: set root passwd
action: user name=root password=$rootpw state=present
tags:
- rootpw
- name: add ansible root key
action: authorized_key user=root key='$FILE(${files}/common/ansible-pub-key)'
tags:
- config
- name: iptables
action: template src=$item dest=/etc/sysconfig/iptables mode=600
first_available_file:
@ -69,20 +87,6 @@
- iptables
- config
- name: sshd_config
action: copy src=$sshd_config dest=/etc/ssh/sshd_config mode=600
first_available_file:
- $sshd_config
- $files/ssh/sshd_config.${ansible_fqdn}
- $files/ssh/sshd_config.${host_group}
- $files/ssh/sshd_config.${dist_tag}
notify:
- restart sshd
tags:
- sshd_config
- config
- sshd
# XXX fixme # a datacenter 'fact' from setup
- name: /etc/resolv.conf
action: copy src=$resolvconf dest=/etc/resolv.conf