Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible Framework Container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Playbooks
Ansible Framework Container
Commits
2a88a998
Commit
2a88a998
authored
9 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Documentation
parent
62763284
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
README.md
+32
-0
32 additions, 0 deletions
README.md
with
33 additions
and
0 deletions
.gitignore
+
1
−
0
View file @
2a88a998
...
...
@@ -5,3 +5,4 @@ inventory
plugins
roles
todo
wiki
This diff is collapsed.
Click to expand it.
README.md
+
32
−
0
View file @
2a88a998
...
...
@@ -78,3 +78,35 @@ sudo ln -s /opt/ansible/directory/ansible.sh a
sudo ln -s /opt/ansible/directory/ansible-playbook.sh apb
sudo ln -s /opt/ansible/directory/sanity.sh asanity
```
### Preparing access to existing hosts
Ansible knows the hosts by name and the company specific naming convention should
be reflected on each local host that wants to use Ansible to manage them. You'll
find the hostnames in the file called
```inventory```
and you should make sure
that your local host knows them by name and their IP address. For this, add a new
line for each of those hosts into your
```/etc/hosts```
file starting with the
IP address followed by a space and the hostname from the inventory file.
Next, and this is the final piece before you can start using Ansible to access
your hosts, make sure that you can access your hosts via SSH. This repository
is built with security at the forefront and therefore access is only available
through a PKI infrastructure. To configure your system for easy access, you
should have a file
```$HOME/.ssh/config```
with some content similar to the
following:
```
ForwardAgent yes
Host *
User [YOUR REMOTE USERNAME]
IdentityFile ~/.ssh/id_rsa
```
The above setting applies to all hosts and the definition of the remote user name
is only neccessary if that remote username is different from your local one. Please
note that you should define the same username also in
```$HOME/.ansible.cfg```
## Where to go next?
The best place to continue reading is by heading over to the
[
Wiki
][
wikis/home
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment