move some tasks around - need to find out if the sshd config will work at all for f19 :)
This commit is contained in:
parent
a01b7b0350
commit
50345409e0
1 changed files with 28 additions and 24 deletions
|
@ -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
|
- name: put repos on system
|
||||||
action: copy src=$files/common/$item dest=/etc/yum.repos.d/$item
|
action: copy src=$files/common/$item dest=/etc/yum.repos.d/$item
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -33,6 +59,7 @@
|
||||||
- firstboot-tui
|
- firstboot-tui
|
||||||
- bluez-utils
|
- bluez-utils
|
||||||
- sendmail
|
- sendmail
|
||||||
|
only_if: '$is_rhel'
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
@ -42,20 +69,11 @@
|
||||||
- yum-updatesd
|
- yum-updatesd
|
||||||
- gpm
|
- gpm
|
||||||
- rhnsd
|
- rhnsd
|
||||||
|
only_if: '$is_rhel'
|
||||||
tags:
|
tags:
|
||||||
- services
|
- services
|
||||||
- config
|
- 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
|
- name: iptables
|
||||||
action: template src=$item dest=/etc/sysconfig/iptables mode=600
|
action: template src=$item dest=/etc/sysconfig/iptables mode=600
|
||||||
first_available_file:
|
first_available_file:
|
||||||
|
@ -69,20 +87,6 @@
|
||||||
- iptables
|
- iptables
|
||||||
- config
|
- 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
|
# XXX fixme # a datacenter 'fact' from setup
|
||||||
- name: /etc/resolv.conf
|
- name: /etc/resolv.conf
|
||||||
action: copy src=$resolvconf dest=/etc/resolv.conf
|
action: copy src=$resolvconf dest=/etc/resolv.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue