make the root auth_keys setup part of the cloud_setup_basic tasks

This commit is contained in:
Seth Vidal 2012-10-26 17:31:32 +00:00
parent a3138b3cd8
commit 13b5f05fb5
2 changed files with 8 additions and 3 deletions

View file

@ -22,8 +22,7 @@
tasks:
- include: $tasks/cloud_setup_basic.yml
- name: add root keys for other allowed users
action: authorized_key user=root key='$PIPE(${auth_keys_from_fas} ${root_auth_users})'
handlers:
- include: $handlers/restart_services.yml

View file

@ -31,6 +31,12 @@
tags:
- config
- name: add root keys for other allowed users
action: authorized_key user=root key='$PIPE(${auth_keys_from_fas} ${root_auth_users})'
only_if: is_set('${root_auth_users}'}
tags:
- config
# note - kinda should be a handler - but handlers need args
- name: restorecon
action: command restorecon -R /root/.ssh