Paul Belanger 5f3c220551
Add ssh_manager to expose control of tasks
There might be a time were we only want run the pre task, so rather
then copying the code into another modules, just allow the user to
override the task list that runs.

Change-Id: Id53c87351e691e9f7cc726fec7470eb257c66890
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-09-05 18:57:13 -04:00

35 lines
1.1 KiB
YAML

# Copyright 2015 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
---
# tasks/main.yaml
ssh_task_manager:
- install
- config
ssh_user_name:
ssh_user_home: "/home/{{ ssh_user_name }}"
ssh_user_group: "{{ ssh_user_name }}"
ssh_key_private_content:
ssh_key_private_dest: "{{ ssh_user_home }}/.ssh/id_rsa"
ssh_key_private_src: id_rsa.j2
ssh_key_public_content:
ssh_key_public_dest: "{{ ssh_user_home }}/.ssh/id_rsa.pub"
ssh_key_public_src: id_rsa.pub.j2
ssh_known_hosts_content:
ssh_known_hosts_dest: "{{ ssh_user_home }}/.ssh/known_hosts"
ssh_known_hosts_src: known_hosts.j2