Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ansible
/
common-playbook
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4e4b3333
authored
Nov 21, 2017
by
ansible
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
1 parent
17bfe066
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
deployAnsible.yml
deployAnsible.yml
0 → 100644
View file @
4e4b333
---
-
hosts
:
new-host
become
:
true
tasks
:
-
name
:
Deploy Ansible User
command
:
useradd -m -c "ansible user" -s /bin/bash -U ansible --uid 1111
-
name
:
Grant Permission
command
:
usermod -aG sudo ansible
-
name
:
Deploy Key
copy
:
src
:
/tmp/configuration/authorized_keys
dest
:
/home/ansible/.ssh/authorized_keys
owner
:
ansible
group
:
ansible
mode
:
0600
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment